diff options
author | Andras Kloczl <andraskloczl@google.com> | 2021-08-17 23:12:17 +0200 |
---|---|---|
committer | Andras Kloczl <andraskloczl@google.com> | 2021-08-26 12:06:50 +0100 |
commit | 8c574de97f967ca79d5d25ef8bd65a8bd58256f0 (patch) | |
tree | 1901242b2c425126dc6b99c6426910dbe2031a66 /src/com/android/launcher3/util/IntArray.java | |
parent | 12bfd96432d98dcbc0f395989459beeef268aee5 (diff) |
Two panel home empty page removing logic change
- Don't remove a single page if it's empty, only if both pages are empty.
- Add back empty pages after they were removed while the phone
was on single panel home.
- On two panel home don't add new workspace items onto the second screen
Test: manual
Bug: 196376162
Change-Id: I4c54ffa3b359a236deb3ab67adb54111e77ec896
Diffstat (limited to 'src/com/android/launcher3/util/IntArray.java')
-rw-r--r-- | src/com/android/launcher3/util/IntArray.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/util/IntArray.java b/src/com/android/launcher3/util/IntArray.java index e7235e76ce..1c787959e4 100644 --- a/src/com/android/launcher3/util/IntArray.java +++ b/src/com/android/launcher3/util/IntArray.java @@ -296,7 +296,7 @@ public class IntArray implements Cloneable, Iterable<Integer> { @Override public void remove() { - throw new UnsupportedOperationException(); + removeIndex(--mNextIndex); } } }
\ No newline at end of file |