Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From e9d16687cc28ed999f2340ece4bda7ece7465b4c Mon Sep 17 00:00:00 2001
- From: luca020400 <luca.stefani.ge1@gmail.com>
- Date: Sat, 18 Oct 2014 12:39:51 +0200
- Subject: [PATCH] Add Transparent Status Bar
- ---
- core/java/android/app/ActivityManager.java | 10 +++++++++-
- 1 file changed, 9 insertions(+), 1 deletion(-)
- diff --git a/core/java/android/app/ActivityManager.java b/core/java/android/app/ActivityManager.java
- index 88c54bf..e2febbd 100644
- --- a/core/java/android/app/ActivityManager.java
- +++ b/core/java/android/app/ActivityManager.java
- @@ -458,7 +458,15 @@ public static boolean isLowRamDeviceStatic() {
- */
- static public boolean isHighEndGfx() {
- return !isLowRamDeviceStatic() &&
- - !Resources.getSystem().getBoolean(com.android.internal.R.bool.config_avoidGfxAccel);
- + !Resources.getSystem().getBoolean(com.android.internal.R.bool.config_avoidGfxAccel)
- + || isForcedHighEndGfx();
- + }
- +
- + /**
- + * @hide
- + */
- + public static boolean isForcedHighEndGfx() {
- + return SystemProperties.getBoolean("persist.sys.force_highendgfx", false);
- }
- /**
- --
- 1.9.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement