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

Commit 40503f9f authored by John Reck's avatar John Reck
Browse files

App compat

 Bug: 13450310

Change-Id: I32d948a243385d1bb9f2615759127f4b13ce01bd
parent e13cf570
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -13953,7 +13953,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * @return A new or reused DisplayList object.
     */
    private DisplayList getDisplayList(DisplayList displayList, boolean isLayer) {
        if (!canHaveDisplayList()) {
        final HardwareRenderer renderer = getHardwareRenderer();
        if (renderer == null || !canHaveDisplayList()) {
            return null;
        }
@@ -14032,13 +14033,21 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                    }
                }
            } finally {
                displayList.end(getHardwareRenderer(), canvas);
                displayList.end(renderer, canvas);
                displayList.setCaching(caching);
                if (isLayer) {
                    displayList.setLeftTopRightBottom(0, 0, width, height);
                } else {
                    setDisplayListProperties(displayList);
                }
                if (renderer != getHardwareRenderer()) {
                    Log.w(VIEW_LOG_TAG, "View was detached during a draw() call!");
                    // TODO: Should this be elevated to a crash?
                    // For now have it behaves the same as it previously did, it
                    // will result in the DisplayListData being destroyed later
                    // than it could be but oh well...
                }
            }
        } else if (!isLayer) {
            mPrivateFlags |= PFLAG_DRAWN | PFLAG_DRAWING_CACHE_VALID;