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

Commit 4741faa2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix: WindowManagerGlobal#setStoppedState failed by IOOBE"

parents a524e7d8 978e7f87
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -605,9 +605,10 @@ public final class WindowManagerGlobal {
    public void setStoppedState(IBinder token, boolean stopped) {
        synchronized (mLock) {
            int count = mViews.size();
            for (int i = 0; i < count; i++) {
            for (int i = count - 1; i >= 0; i--) {
                if (token == null || mParams.get(i).token == token) {
                    ViewRootImpl root = mRoots.get(i);
                    // Client might remove the view by "stopped" event.
                    root.setWindowStopped(stopped);
                }
            }