diff --git a/res/values/strings.xml b/res/values/strings.xml index 28908d7cd34..2861482431e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -12436,4 +12436,7 @@ Unavailable because bedtime mode is on + + + Reset notification importance completed. diff --git a/src/com/android/settings/notification/ImportanceResetPreferenceController.java b/src/com/android/settings/notification/ImportanceResetPreferenceController.java index b374129dd46..3c66f1a2740 100644 --- a/src/com/android/settings/notification/ImportanceResetPreferenceController.java +++ b/src/com/android/settings/notification/ImportanceResetPreferenceController.java @@ -19,6 +19,7 @@ package com.android.settings.notification; import android.content.Context; import android.view.View; import android.widget.Button; +import android.widget.Toast; import androidx.preference.Preference; @@ -57,6 +58,8 @@ public class ImportanceResetPreferenceController extends BasePreferenceControlle @Override public void onClick(View v) { mBackend.resetNotificationImportance(); + Toast.makeText(mContext, R.string.reset_importance_completed, Toast.LENGTH_SHORT) + .show(); } @Override