Use transparent system bars on L

Change-Id: I1e8921fa0e8a5bdf34495f9d88ba9f3b1f1e9c89
This commit is contained in:
Sandeep Siddhartha committed 2014-05-16 17:48:16 -07:00
1 parent dbc46f5e05
commit 2efc7d928a
2 files changed
+59

No files matched your search

+9
View File
@@ -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;
@@ -98,6 +99,14 @@ public final class Utilities {
return enableRotation;
}
/**
* 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)