summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherAppState.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-06-05 00:13:25 -0700
committerSunny Goyal <sunnygoyal@google.com>2015-06-05 00:34:06 -0700
commit4f3e9383eb422c87e2689548653b89f34f5516a5 (patch)
treefe42f1800be1eabeac6498e0bfb14f91b2b77ba2 /src/com/android/launcher3/LauncherAppState.java
parent26c2842f07668385b8f4594848cf6e93502da4a3 (diff)
downloadandroid_packages_apps_Trebuchet-4f3e9383eb422c87e2689548653b89f34f5516a5.tar.gz
android_packages_apps_Trebuchet-4f3e9383eb422c87e2689548653b89f34f5516a5.tar.bz2
android_packages_apps_Trebuchet-4f3e9383eb422c87e2689548653b89f34f5516a5.zip
Code cleanup
> Removing obsolete logging > Removing unused methods > Removing resource leak warning due to non-static handler class in launcher Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb
Diffstat (limited to 'src/com/android/launcher3/LauncherAppState.java')
-rw-r--r--src/com/android/launcher3/LauncherAppState.java11
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;
}