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

Commit 17c6133f authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix crash

Test: Open IME in new insets state
Bug: 111084606
Change-Id: I71555c5414e167c73bbf4ad212d264c7dc5ad7c1
parent e11493cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -670,7 +670,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
    void updateRequestedInsetsState(InsetsState state) {

        // Only update the sources the client is actually controlling.
        for (int i = state.getSourcesCount(); i >= 0; i--) {
        for (int i = state.getSourcesCount() - 1; i >= 0; i--) {
            final InsetsSource source = state.sourceAt(i);
            mRequestedInsetsState.addSource(source);
        }