Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a7e94ea authored by Adam Powell's avatar Adam Powell
Browse files

Only set the accelerated drawable state for views when the hardware

renderer is available.

Change-Id: I5bcf2068771d47604e12a44e1ab870fa4c69fb4c
parent a13802d8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -10106,7 +10106,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
        if ((privateFlags & SELECTED) != 0) viewStateIndex |= VIEW_STATE_SELECTED;
        if (hasWindowFocus()) viewStateIndex |= VIEW_STATE_WINDOW_FOCUSED;
        if ((privateFlags & ACTIVATED) != 0) viewStateIndex |= VIEW_STATE_ACTIVATED;
        if (mAttachInfo != null && mAttachInfo.mHardwareAccelerationRequested) {
        if (mAttachInfo != null && mAttachInfo.mHardwareAccelerationRequested &&
                HardwareRenderer.isAvailable()) {
            // This is set if HW acceleration is requested, even if the current
            // process doesn't allow it.  This is just to allow app preview
            // windows to better match their app.