diff options
author | Catherine Liang <cathliang@google.com> | 2023-11-17 21:56:50 +0000 |
---|---|---|
committer | Catherine Liang <cathliang@google.com> | 2023-11-17 22:07:46 +0000 |
commit | 38aeb2aa4f825f854c3ffe77bbfc3229afad603d (patch) | |
tree | da4251473ae9c9ab93c90fad9451e359047b1a60 /tests | |
parent | 4a06fae71edbd09fb3c0ee3de76392cdaffbd5f5 (diff) | |
download | ThemePicker-38aeb2aa4f825f854c3ffe77bbfc3229afad603d.tar.gz |
Fix crash from resetting shortcuts to none
Wallpaper picker crashes from resetting both shortcuts to none, and
behaves incorrectly when resetting one shortcut to none, because slots
without a selection were not accounted for in the snapshot restorer.
Flag: NONE
Bug: 305156127
Test: Manually verified different shortcut reset scenarios
Change-Id: Ib218dccf3f34509b64662eafdf7ac301884ec066
Diffstat (limited to 'tests')
-rw-r--r-- | tests/robotests/src/com/android/customization/model/picker/quickaffordance/domain/interactor/KeyguardQuickAffordancePickerInteractorTest.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/robotests/src/com/android/customization/model/picker/quickaffordance/domain/interactor/KeyguardQuickAffordancePickerInteractorTest.kt b/tests/robotests/src/com/android/customization/model/picker/quickaffordance/domain/interactor/KeyguardQuickAffordancePickerInteractorTest.kt index bf53f61f..4b4790ad 100644 --- a/tests/robotests/src/com/android/customization/model/picker/quickaffordance/domain/interactor/KeyguardQuickAffordancePickerInteractorTest.kt +++ b/tests/robotests/src/com/android/customization/model/picker/quickaffordance/domain/interactor/KeyguardQuickAffordancePickerInteractorTest.kt @@ -132,7 +132,7 @@ class KeyguardQuickAffordancePickerInteractorTest { affordanceId = FakeCustomizationProviderClient.AFFORDANCE_3, ) - underTest.unselectAll( + underTest.unselectAllFromSlot( slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_END, ) |