diff options
| author | 2020-01-07 16:22:44 +0000 | |
|---|---|---|
| committer | 2020-01-07 16:22:44 +0000 | |
| commit | f1e1625fce82b912da1a2736111a23d2fbc64629 (patch) | |
| tree | 6d7e7c7b65622fecb5605524d08c774b192d5570 | |
| parent | c18581d9cc3f475b9296838e3b3882c64194e613 (diff) | |
| parent | 17c6133fce786739f38535c17a90f9718006c60c (diff) | |
Merge "Fix crash"
| -rw-r--r-- | services/core/java/com/android/server/wm/WindowState.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/WindowState.java b/services/core/java/com/android/server/wm/WindowState.java index 00ef95a60fc7..e3dc76355266 100644 --- a/services/core/java/com/android/server/wm/WindowState.java +++ b/services/core/java/com/android/server/wm/WindowState.java @@ -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); } |