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

Commit d9b1607b authored by John Reck's avatar John Reck
Browse files

destroyHardwareResources in onStop()

Bug: 27286867

This hopefully makes everything fully-deterministic. It should
also fix some old annoyances around Bitmap lifecycle as they will
be released earlier in onStop() instead of waiting for
dispatchDetachedFromWindow() which may never happen.

Change-Id: I6e871760650780e327c0e42f62950c1052dd8019
parent 791a7df8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1072,6 +1072,8 @@ public final class ViewRootImpl implements ViewParent,
            mStopped = stopped;
            if (!mStopped) {
                scheduleTraversals();
            } else {
                destroyHardwareResources();
            }
        }
    }