Merge "Enable HW accelerated window shade for all devices" into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0d8eba64b2
@@ -1943,9 +1943,7 @@ public class PhoneStatusBar extends BaseStatusBar {
|
|||||||
| WindowManager.LayoutParams.FLAG_SPLIT_TOUCH,
|
| WindowManager.LayoutParams.FLAG_SPLIT_TOUCH,
|
||||||
PixelFormat.TRANSLUCENT);
|
PixelFormat.TRANSLUCENT);
|
||||||
|
|
||||||
if (ActivityManager.isHighEndGfx(mDisplay)) {
|
lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;
|
||||||
lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;
|
|
||||||
}
|
|
||||||
|
|
||||||
lp.gravity = getStatusBarGravity();
|
lp.gravity = getStatusBarGravity();
|
||||||
lp.setTitle("StatusBar");
|
lp.setTitle("StatusBar");
|
||||||
|
|||||||
Reference in New Issue
Block a user