Advertisement
luca020400

force_highendgfx.patch

May 3rd, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.16 KB | None | 0 0
  1. From e9d16687cc28ed999f2340ece4bda7ece7465b4c Mon Sep 17 00:00:00 2001
  2. From: luca020400 <luca.stefani.ge1@gmail.com>
  3. Date: Sat, 18 Oct 2014 12:39:51 +0200
  4. Subject: [PATCH] Add Transparent Status Bar
  5.  
  6. ---
  7. core/java/android/app/ActivityManager.java | 10 +++++++++-
  8.  1 file changed, 9 insertions(+), 1 deletion(-)
  9.  
  10. diff --git a/core/java/android/app/ActivityManager.java b/core/java/android/app/ActivityManager.java
  11. index 88c54bf..e2febbd 100644
  12. --- a/core/java/android/app/ActivityManager.java
  13. +++ b/core/java/android/app/ActivityManager.java
  14. @@ -458,7 +458,15 @@ public static boolean isLowRamDeviceStatic() {
  15.       */
  16.      static public boolean isHighEndGfx() {
  17.          return !isLowRamDeviceStatic() &&
  18. -                !Resources.getSystem().getBoolean(com.android.internal.R.bool.config_avoidGfxAccel);
  19. +                !Resources.getSystem().getBoolean(com.android.internal.R.bool.config_avoidGfxAccel)
  20. +                || isForcedHighEndGfx();
  21. +    }
  22. +    
  23. +    /**
  24. +     * @hide
  25. +     */
  26. +    public static boolean isForcedHighEndGfx() {
  27. +        return SystemProperties.getBoolean("persist.sys.force_highendgfx", false);
  28.      }
  29.  
  30.      /**
  31. --
  32. 1.9.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement