diff options
author | John Reck <jreck@google.com> | 2011-05-17 12:35:37 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-05-17 12:49:09 -0700 |
commit | a5176f3e20d7bc0f07b1434f35c9458f40477644 (patch) | |
tree | 6fa93f28ea410ab8c4d8d56654e5edb7bcba88f9 /src/com/android/browser/BrowserActivity.java | |
parent | 27f72f5f8f8db7eaa68683b95c1a7aeeb16ce979 (diff) | |
download | packages_apps_Browser-a5176f3e20d7bc0f07b1434f35c9458f40477644.zip packages_apps_Browser-a5176f3e20d7bc0f07b1434f35c9458f40477644.tar.gz packages_apps_Browser-a5176f3e20d7bc0f07b1434f35c9458f40477644.tar.bz2 |
Use tablet UI for large
Bug: 4443420
Change-Id: I51e85a75cc246e940374eca8eae43ddcd3898923
Diffstat (limited to 'src/com/android/browser/BrowserActivity.java')
-rw-r--r-- | src/com/android/browser/BrowserActivity.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index 3c025d2..a9b65fd 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java @@ -96,7 +96,7 @@ public class BrowserActivity extends Activity { } mController = new Controller(this); - boolean xlarge = isXlarge(this); + boolean xlarge = isTablet(this); if (xlarge) { mUi = new XLargeUi(this, mController); } else { @@ -113,10 +113,8 @@ public class BrowserActivity extends Activity { mController.start(icicle, getIntent()); } - public static boolean isXlarge(Context context) { - return (context.getResources().getConfiguration().screenLayout - & Configuration.SCREENLAYOUT_SIZE_MASK) - == Configuration.SCREENLAYOUT_SIZE_XLARGE; + public static boolean isTablet(Context context) { + return context.getResources().getBoolean(R.bool.isTablet); } @VisibleForTesting |