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

Commit 63bce816 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "frameworks/base: Fix the random UI corruption"

parents 8f00d386 9bafee1c
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -13145,6 +13145,23 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                invalidate(true);
                invalidateParentCaches();
            } else if (info != null && info.mHardwareRenderer != null) {
                // If fall into this path, means the hardware render has
                // already been disabled. Destroy it in a safely context
                // to avoid random UI corruption
                info.mHardwareRenderer.safelyRun(new Runnable() {
                    @Override
                    public void run() {
                        mHardwareLayer.destroy();
                        mHardwareLayer = null;
                        if (mDisplayList != null) {
                            mDisplayList.reset();
                        }
                        invalidate(true);
                        invalidateParentCaches();
                    }
                });
            }
            return true;
        }