diff options
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r-- | src/com/android/launcher3/Utilities.java | 9 |
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) |