commit | 05c4027843a6d864eecf549d084f60da83e00fd3 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Fri Aug 09 23:12:10 2024 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Aug 09 23:12:10 2024 +0000 |
tree | 1af0c69f6181bf1548dd47c25f2d2093af7be933 | |
parent | 422770ed1ea1f8733d9f6a738e3f962a37e73e51 [diff] | |
parent | 2483b32069fb5740b38490f257c72d73c36c62cc [diff] |
Merge "Fix DoubleBraceInitialization errorprone issues" into main
diff --git a/tests/robotests/src/com/android/settings/notification/app/AppChannelsBypassingDndPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/notification/app/AppChannelsBypassingDndPreferenceControllerTest.java index 053b352..fba226c 100644 --- a/tests/robotests/src/com/android/settings/notification/app/AppChannelsBypassingDndPreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/notification/app/AppChannelsBypassingDndPreferenceControllerTest.java
@@ -48,6 +48,7 @@ import org.robolectric.shadows.ShadowApplication; import java.util.ArrayList; +import java.util.Arrays; import java.util.Collections; @RunWith(RobolectricTestRunner.class) @@ -175,12 +176,7 @@ NotificationManager.IMPORTANCE_DEFAULT)); ParceledListSlice<NotificationChannelGroup> groups = new ParceledListSlice<>( - new ArrayList<NotificationChannelGroup>() { - { - add(group1); - add(group2); - } - } + Arrays.asList(group1, group2) ); when(mBackend.getGroups(eq(mAppRow.pkg), eq(mAppRow.uid))).thenReturn(groups);