diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-06-05 17:40:26 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-05 17:40:27 +0000 |
commit | 8d8c73b591bf58f93f8841938ad8ce92085f7105 (patch) | |
tree | d09f97fb959cdda914b37d2e5046fd251a0a9951 /src/com/android/launcher3/LauncherAppState.java | |
parent | 2e6e9b879591068864c4623f414e792707aa2aca (diff) | |
parent | 4f3e9383eb422c87e2689548653b89f34f5516a5 (diff) | |
download | android_packages_apps_Trebuchet-8d8c73b591bf58f93f8841938ad8ce92085f7105.tar.gz android_packages_apps_Trebuchet-8d8c73b591bf58f93f8841938ad8ce92085f7105.tar.bz2 android_packages_apps_Trebuchet-8d8c73b591bf58f93f8841938ad8ce92085f7105.zip |
Merge "Code cleanup" into ub-launcher3-burnaby
Diffstat (limited to 'src/com/android/launcher3/LauncherAppState.java')
-rw-r--r-- | src/com/android/launcher3/LauncherAppState.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/com/android/launcher3/LauncherAppState.java b/src/com/android/launcher3/LauncherAppState.java index d4b41e671..afa09ec83 100644 --- a/src/com/android/launcher3/LauncherAppState.java +++ b/src/com/android/launcher3/LauncherAppState.java @@ -41,7 +41,6 @@ public class LauncherAppState { private final WidgetPreviewLoader mWidgetCache; private final boolean mIsScreenLarge; - private final float mScreenDensity; private final int mLongPressTimeout = 300; private boolean mWallpaperChangedSinceLastCheck; @@ -89,7 +88,6 @@ public class LauncherAppState { // set sIsScreenXLarge and mScreenDensity *before* creating icon cache mIsScreenLarge = isScreenLarge(sContext.getResources()); - mScreenDensity = sContext.getResources().getDisplayMetrics().density; mInvariantDeviceProfile = new InvariantDeviceProfile(sContext); mIconCache = new IconCache(sContext, mInvariantDeviceProfile); mWidgetCache = new WidgetPreviewLoader(sContext, mInvariantDeviceProfile, mIconCache); @@ -180,15 +178,6 @@ public class LauncherAppState { return res.getBoolean(R.bool.is_large_tablet); } - public static boolean isScreenLandscape(Context context) { - return context.getResources().getConfiguration().orientation == - Configuration.ORIENTATION_LANDSCAPE; - } - - public float getScreenDensity() { - return mScreenDensity; - } - public int getLongPressTimeout() { return mLongPressTimeout; } |