Loading src/com/android/settings/notification/app/ConversationPromotePreferenceController.java +1 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ public class ConversationPromotePreferenceController extends NotificationPrefere return false; } mChannel.setDemoted(false); mChannel.setBypassDnd(false); saveChannel(); if (mHostFragment != null) { Loading tests/robotests/src/com/android/settings/notification/app/ConversationPromotePreferenceControllerTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,7 @@ public class ConversationPromotePreferenceControllerTest { NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); channel.setConversationId("a", "a"); channel.setDemoted(true); channel.setBypassDnd(true); mController.onResume(appRow, channel, null, null, null, null); Preference pref = mock(Preference.class); Loading @@ -121,6 +122,7 @@ public class ConversationPromotePreferenceControllerTest { verify(mBackend).updateChannel(eq(null), anyInt(), captor.capture()); assertFalse(captor.getValue().isDemoted()); assertFalse(captor.getValue().canBypassDnd()); verify(mFragment).getActivity(); } Loading Loading
src/com/android/settings/notification/app/ConversationPromotePreferenceController.java +1 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ public class ConversationPromotePreferenceController extends NotificationPrefere return false; } mChannel.setDemoted(false); mChannel.setBypassDnd(false); saveChannel(); if (mHostFragment != null) { Loading
tests/robotests/src/com/android/settings/notification/app/ConversationPromotePreferenceControllerTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,7 @@ public class ConversationPromotePreferenceControllerTest { NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); channel.setConversationId("a", "a"); channel.setDemoted(true); channel.setBypassDnd(true); mController.onResume(appRow, channel, null, null, null, null); Preference pref = mock(Preference.class); Loading @@ -121,6 +122,7 @@ public class ConversationPromotePreferenceControllerTest { verify(mBackend).updateChannel(eq(null), anyInt(), captor.capture()); assertFalse(captor.getValue().isDemoted()); assertFalse(captor.getValue().canBypassDnd()); verify(mFragment).getActivity(); } Loading