File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 2626import android .net .Uri ;
2727import android .os .Bundle ;
2828import android .os .IBinder ;
29+ import android .os .SystemProperties ;
2930import android .util .Slog ;
3031import android .view .accessibility .AccessibilityEvent ;
3132
@@ -472,11 +473,14 @@ static CompatibilityInfoHolder getCompatInfo(Context context) {
472473 }
473474
474475 private class LocalWindowManager extends WindowManagerImpl .CompatModeWrapper {
476+ private static final String PROPERTY_HARDWARE_UI = "persist.sys.ui.hw" ;
477+
475478 private final boolean mHardwareAccelerated ;
476479
477480 LocalWindowManager (WindowManager wm , boolean hardwareAccelerated ) {
478481 super (wm , getCompatInfo (mContext ));
479- mHardwareAccelerated = hardwareAccelerated ;
482+ mHardwareAccelerated = hardwareAccelerated ||
483+ SystemProperties .getBoolean (PROPERTY_HARDWARE_UI , false );
480484 }
481485
482486 public boolean isHardwareAccelerated () {
You can’t perform that action at this time.
0 commit comments