summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorSandeep Siddhartha <sansid@google.com>2014-05-16 17:21:15 -0700
committerSandeep Siddhartha <sansid@google.com>2014-05-16 17:48:16 -0700
commit2efc7d928a3df57838f8abd8ed6fdb9eeb21b481 (patch)
tree1b6d7854d641b580d800046a28d8684eb79aeeb6 /src/com/android/launcher3/Utilities.java
parentdbc46f5e05d035524eff7fb1ea3ac8681b6b673a (diff)
downloadandroid_packages_apps_Trebuchet-2efc7d928a3df57838f8abd8ed6fdb9eeb21b481.tar.gz
android_packages_apps_Trebuchet-2efc7d928a3df57838f8abd8ed6fdb9eeb21b481.tar.bz2
android_packages_apps_Trebuchet-2efc7d928a3df57838f8abd8ed6fdb9eeb21b481.zip
Use transparent system bars on L
Change-Id: I1e8921fa0e8a5bdf34495f9d88ba9f3b1f1e9c89
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r--src/com/android/launcher3/Utilities.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java
index 8deadf1d9..74b6e47f1 100644
--- a/src/com/android/launcher3/Utilities.java
+++ b/src/com/android/launcher3/Utilities.java
@@ -33,6 +33,7 @@ import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.PaintDrawable;
+import android.os.Build;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.View;
@@ -99,6 +100,14 @@ public final class Utilities {
}
/**
+ * Indicates if the device is running LMP or not.
+ * TODO(sansid): Change the check to a VERSION_CODES code check once we have a version for L.
+ */
+ public static boolean isLmp() {
+ return "L".equals(Build.VERSION.CODENAME);
+ }
+
+ /**
* Returns a bitmap suitable for the all apps view. Used to convert pre-ICS
* icon bitmaps that are stored in the database (which were 74x74 pixels at hdpi size)
* to the proper size (48dp)