Loading src/com/android/settings/notification/app/AppChannelsBypassingDndPreferenceController.java +4 −1 Original line number Diff line number Diff line Loading @@ -226,7 +226,10 @@ public class AppChannelsBypassingDndPreferenceController extends NotificationPre .setArguments(channelArgs) .setUserHandle(UserHandle.of(mAppRow.userId)) .setTitleRes(com.android.settings.R.string.notification_channel_title) .setSourceMetricsCategory(SettingsEnums.DND_APPS_BYPASSING) .setSourceMetricsCategory( android.app.Flags.modesUi() ? SettingsEnums.NOTIFICATION_ZEN_MODE_OVERRIDING_APP_CHANNELS : SettingsEnums.DND_APPS_BYPASSING) .launch(); return true; }); Loading src/com/android/settings/notification/app/AppChannelsBypassingDndSettings.java +3 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,9 @@ public class AppChannelsBypassingDndSettings extends NotificationSettings { @Override public int getMetricsCategory() { return SettingsEnums.DND_APPS_BYPASSING; return android.app.Flags.modesUi() ? SettingsEnums.NOTIFICATION_ZEN_MODE_OVERRIDING_APP_CHANNELS : SettingsEnums.DND_APPS_BYPASSING; } @Override Loading src/com/android/settings/notification/modes/SetupInterstitialActivity.java +3 −1 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import static android.app.AutomaticZenRule.TYPE_THEATER; import static android.provider.Settings.EXTRA_AUTOMATIC_ZEN_RULE_ID; import android.app.ActionBar; import android.app.settings.SettingsEnums; import android.content.Context; import android.content.Intent; import android.os.Bundle; Loading Loading @@ -164,7 +165,8 @@ public class SetupInterstitialActivity extends FragmentActivity { // they happen to go back. Forward the activity result in case we got here (indirectly) // from some app that is waiting for the result. if (updated) { ZenSubSettingLauncher.forMode(this, modeId) ZenSubSettingLauncher.forModeFragment(this, ZenModeFragment.class, modeId, SettingsEnums.ZEN_MODE_INTERSTITIAL) .addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT).launch(); } finish(); Loading src/com/android/settings/notification/modes/ZenModeAppsFragment.java +1 −2 Original line number Diff line number Diff line Loading @@ -47,7 +47,6 @@ public class ZenModeAppsFragment extends ZenModeFragmentBase { @Override public int getMetricsCategory() { // TODO: b/332937635 - make this the correct metrics category return SettingsEnums.NOTIFICATION_ZEN_MODE_PRIORITY; return SettingsEnums.NOTIFICATION_ZEN_MODE_OVERRIDING_APPS; } } src/com/android/settings/notification/modes/ZenModeAppsLinkPreferenceController.java +2 −2 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import static android.app.NotificationManager.INTERRUPTION_FILTER_ALL; import static android.provider.Settings.EXTRA_AUTOMATIC_ZEN_RULE_ID; import android.app.Application; import android.app.settings.SettingsEnums; import android.content.Context; import android.os.Bundle; import android.os.UserHandle; Loading Loading @@ -93,10 +94,9 @@ class ZenModeAppsLinkPreferenceController extends AbstractZenModePreferenceContr public void updateState(Preference preference, @NonNull ZenMode zenMode) { Bundle bundle = new Bundle(); bundle.putString(EXTRA_AUTOMATIC_ZEN_RULE_ID, zenMode.getId()); // TODO(b/332937635): Update metrics category preference.setIntent( ZenSubSettingLauncher.forModeFragment(mContext, ZenModeAppsFragment.class, zenMode.getId(), 0).toIntent()); zenMode.getId(), SettingsEnums.ZEN_PRIORITY_MODE).toIntent()); preference.setEnabled(zenMode.isEnabled()); mZenMode = zenMode; Loading Loading
src/com/android/settings/notification/app/AppChannelsBypassingDndPreferenceController.java +4 −1 Original line number Diff line number Diff line Loading @@ -226,7 +226,10 @@ public class AppChannelsBypassingDndPreferenceController extends NotificationPre .setArguments(channelArgs) .setUserHandle(UserHandle.of(mAppRow.userId)) .setTitleRes(com.android.settings.R.string.notification_channel_title) .setSourceMetricsCategory(SettingsEnums.DND_APPS_BYPASSING) .setSourceMetricsCategory( android.app.Flags.modesUi() ? SettingsEnums.NOTIFICATION_ZEN_MODE_OVERRIDING_APP_CHANNELS : SettingsEnums.DND_APPS_BYPASSING) .launch(); return true; }); Loading
src/com/android/settings/notification/app/AppChannelsBypassingDndSettings.java +3 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,9 @@ public class AppChannelsBypassingDndSettings extends NotificationSettings { @Override public int getMetricsCategory() { return SettingsEnums.DND_APPS_BYPASSING; return android.app.Flags.modesUi() ? SettingsEnums.NOTIFICATION_ZEN_MODE_OVERRIDING_APP_CHANNELS : SettingsEnums.DND_APPS_BYPASSING; } @Override Loading
src/com/android/settings/notification/modes/SetupInterstitialActivity.java +3 −1 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import static android.app.AutomaticZenRule.TYPE_THEATER; import static android.provider.Settings.EXTRA_AUTOMATIC_ZEN_RULE_ID; import android.app.ActionBar; import android.app.settings.SettingsEnums; import android.content.Context; import android.content.Intent; import android.os.Bundle; Loading Loading @@ -164,7 +165,8 @@ public class SetupInterstitialActivity extends FragmentActivity { // they happen to go back. Forward the activity result in case we got here (indirectly) // from some app that is waiting for the result. if (updated) { ZenSubSettingLauncher.forMode(this, modeId) ZenSubSettingLauncher.forModeFragment(this, ZenModeFragment.class, modeId, SettingsEnums.ZEN_MODE_INTERSTITIAL) .addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT).launch(); } finish(); Loading
src/com/android/settings/notification/modes/ZenModeAppsFragment.java +1 −2 Original line number Diff line number Diff line Loading @@ -47,7 +47,6 @@ public class ZenModeAppsFragment extends ZenModeFragmentBase { @Override public int getMetricsCategory() { // TODO: b/332937635 - make this the correct metrics category return SettingsEnums.NOTIFICATION_ZEN_MODE_PRIORITY; return SettingsEnums.NOTIFICATION_ZEN_MODE_OVERRIDING_APPS; } }
src/com/android/settings/notification/modes/ZenModeAppsLinkPreferenceController.java +2 −2 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import static android.app.NotificationManager.INTERRUPTION_FILTER_ALL; import static android.provider.Settings.EXTRA_AUTOMATIC_ZEN_RULE_ID; import android.app.Application; import android.app.settings.SettingsEnums; import android.content.Context; import android.os.Bundle; import android.os.UserHandle; Loading Loading @@ -93,10 +94,9 @@ class ZenModeAppsLinkPreferenceController extends AbstractZenModePreferenceContr public void updateState(Preference preference, @NonNull ZenMode zenMode) { Bundle bundle = new Bundle(); bundle.putString(EXTRA_AUTOMATIC_ZEN_RULE_ID, zenMode.getId()); // TODO(b/332937635): Update metrics category preference.setIntent( ZenSubSettingLauncher.forModeFragment(mContext, ZenModeAppsFragment.class, zenMode.getId(), 0).toIntent()); zenMode.getId(), SettingsEnums.ZEN_PRIORITY_MODE).toIntent()); preference.setEnabled(zenMode.isEnabled()); mZenMode = zenMode; Loading