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

Commit 526bff98 authored by ywen's avatar ywen Committed by Steve Kondik
Browse files

frameworks/base: Fix change propagating issue

destroyLayer() function has been modified in kk. It is not correct
to propagate the UI corruption fix from jb to kk without considering
the new changes made in kk. This change is to make it align with
the new code in kk.

Change-Id: I34d11b230b9390fe8a989ab6f9c7d3a48d586205
parent 0e0bc99c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -13159,12 +13159,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                info.mHardwareRenderer.safelyRun(new Runnable() {
                    @Override
                    public void run() {
                        // cancelLayerUpdate() is not called here because the
                        // glCanvas is null when HardwareRender is disabled
                        // cancelLayerUpdate is actually done in the glCanvas.
                        mHardwareLayer.destroy();
                        mHardwareLayer = null;
                        if (mDisplayList != null) {
                            mDisplayList.reset();
                        }
                        invalidate(true);
                        invalidateParentCaches();
                    }