Loading packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/row/ui/viewmodel/BundleHeaderGutsViewModelTest.kt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -73,7 +73,7 @@ class BundleHeaderGutsViewModelTest : SysuiTestCase() { // Assert // Assert verify(mockDisableBundle).invoke() verify(mockDisableBundle).invoke() verify(mockCloseGuts, never()).invoke() verify(mockCloseGuts).invoke() } } @Test @Test Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ui/viewmodel/BundleHeaderGutsViewModel.kt +2 −3 Original line number Original line Diff line number Diff line Loading @@ -51,9 +51,8 @@ class BundleHeaderGutsViewModel( } } fun onDoneOrApplyClicked() { fun onDoneOrApplyClicked() { if (switchState) { closeGuts.invoke() closeGuts.invoke() } else { if (!switchState) { // The bundle always starts enabled otherwise the guts would not have been visible. Thus // The bundle always starts enabled otherwise the guts would not have been visible. Thus // we only need to update settings when the switch was toggled to false. Notifications // we only need to update settings when the switch was toggled to false. Notifications // that were previously in the bundle will be re-sorted into their original locations. // that were previously in the bundle will be re-sorted into their original locations. Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/row/ui/viewmodel/BundleHeaderGutsViewModelTest.kt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -73,7 +73,7 @@ class BundleHeaderGutsViewModelTest : SysuiTestCase() { // Assert // Assert verify(mockDisableBundle).invoke() verify(mockDisableBundle).invoke() verify(mockCloseGuts, never()).invoke() verify(mockCloseGuts).invoke() } } @Test @Test Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ui/viewmodel/BundleHeaderGutsViewModel.kt +2 −3 Original line number Original line Diff line number Diff line Loading @@ -51,9 +51,8 @@ class BundleHeaderGutsViewModel( } } fun onDoneOrApplyClicked() { fun onDoneOrApplyClicked() { if (switchState) { closeGuts.invoke() closeGuts.invoke() } else { if (!switchState) { // The bundle always starts enabled otherwise the guts would not have been visible. Thus // The bundle always starts enabled otherwise the guts would not have been visible. Thus // we only need to update settings when the switch was toggled to false. Notifications // we only need to update settings when the switch was toggled to false. Notifications // that were previously in the bundle will be re-sorted into their original locations. // that were previously in the bundle will be re-sorted into their original locations. Loading