Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[WEEX][Weex-Android] Supported Pad Render Mode For Big Screen (#2273)
Browse files Browse the repository at this point in the history
  • Loading branch information
gubaojian authored and YorkShen committed Apr 3, 2019
1 parent 0793e17 commit e006164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public static boolean isHardwareSupport() {
if (WXEnvironment.isApkDebugable()) {
WXLogUtils.d("isTableDevice:" + WXUtils.isTabletDevice());
}
return isCPUSupport() && !WXUtils.isTabletDevice();
return isCPUSupport();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ public static double getDouble(Object value) {
return result;
}

@Deprecated
public static boolean isTabletDevice() {
try{
return (WXEnvironment.getApplication().getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) >= Configuration.SCREENLAYOUT_SIZE_LARGE;
Expand Down

0 comments on commit e006164

Please sign in to comment.