diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-11-23 11:47:50 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2015-12-01 14:43:32 -0800 |
commit | 9326461652c36c2ddd888d1452cf7f075a391868 (patch) | |
tree | 1ad864d2009abbed3c2749232352008f8cdf0e24 /src/com/android/launcher3/InvariantDeviceProfile.java | |
parent | 0c2f0700a55080318a4c21457408abb8af26740d (diff) | |
download | android_packages_apps_Trebuchet-9326461652c36c2ddd888d1452cf7f075a391868.tar.gz android_packages_apps_Trebuchet-9326461652c36c2ddd888d1452cf7f075a391868.tar.bz2 android_packages_apps_Trebuchet-9326461652c36c2ddd888d1452cf7f075a391868.zip |
Adding margin to Drag layer instead of checking for right insets at every place
Bug: 25692432
Change-Id: I853f41a17c54b30b7772b9fd8556d9465de84752
Diffstat (limited to 'src/com/android/launcher3/InvariantDeviceProfile.java')
-rw-r--r-- | src/com/android/launcher3/InvariantDeviceProfile.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/com/android/launcher3/InvariantDeviceProfile.java b/src/com/android/launcher3/InvariantDeviceProfile.java index e983eb116..0d183db37 100644 --- a/src/com/android/launcher3/InvariantDeviceProfile.java +++ b/src/com/android/launcher3/InvariantDeviceProfile.java @@ -17,7 +17,6 @@ package com.android.launcher3; import android.annotation.TargetApi; -import android.app.ActivityManager; import android.content.Context; import android.graphics.Point; import android.util.DisplayMetrics; @@ -84,9 +83,6 @@ public class InvariantDeviceProfile { DeviceProfile landscapeProfile; DeviceProfile portraitProfile; - // On Marshmallow the status bar is no longer opaque, when drawn on the right. - public boolean isRightInsetOpaque; - InvariantDeviceProfile() { } @@ -170,9 +166,6 @@ public class InvariantDeviceProfile { largeSide, smallSide, true /* isLandscape */); portraitProfile = new DeviceProfile(context, this, smallestSize, largestSize, smallSide, largeSide, false /* isLandscape */); - - isRightInsetOpaque = !Utilities.ATLEAST_MARSHMALLOW || - context.getSystemService(ActivityManager.class).isLowRamDevice(); } ArrayList<InvariantDeviceProfile> getPredefinedDeviceProfiles() { |