Loading res/values/strings.xml +3 −0 Original line number Original line Diff line number Diff line Loading @@ -12436,4 +12436,7 @@ <!-- Summary for preference when Bedtime mode is on [CHAR LIMIT=NONE] --> <!-- Summary for preference when Bedtime mode is on [CHAR LIMIT=NONE] --> <string name="aware_summary_when_bedtime_on">Unavailable because bedtime mode is on</string> <string name="aware_summary_when_bedtime_on">Unavailable because bedtime mode is on</string> <!-- Toast message to inform reset notification importance is completed [CHAR LIMIT=NONE] --> <string name="reset_importance_completed">Reset notification importance completed.</string> </resources> </resources> src/com/android/settings/notification/ImportanceResetPreferenceController.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -19,6 +19,7 @@ package com.android.settings.notification; import android.content.Context; import android.content.Context; import android.view.View; import android.view.View; import android.widget.Button; import android.widget.Button; import android.widget.Toast; import androidx.preference.Preference; import androidx.preference.Preference; Loading Loading @@ -57,6 +58,8 @@ public class ImportanceResetPreferenceController extends BasePreferenceControlle @Override @Override public void onClick(View v) { public void onClick(View v) { mBackend.resetNotificationImportance(); mBackend.resetNotificationImportance(); Toast.makeText(mContext, R.string.reset_importance_completed, Toast.LENGTH_SHORT) .show(); } } @Override @Override Loading Loading
res/values/strings.xml +3 −0 Original line number Original line Diff line number Diff line Loading @@ -12436,4 +12436,7 @@ <!-- Summary for preference when Bedtime mode is on [CHAR LIMIT=NONE] --> <!-- Summary for preference when Bedtime mode is on [CHAR LIMIT=NONE] --> <string name="aware_summary_when_bedtime_on">Unavailable because bedtime mode is on</string> <string name="aware_summary_when_bedtime_on">Unavailable because bedtime mode is on</string> <!-- Toast message to inform reset notification importance is completed [CHAR LIMIT=NONE] --> <string name="reset_importance_completed">Reset notification importance completed.</string> </resources> </resources>
src/com/android/settings/notification/ImportanceResetPreferenceController.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -19,6 +19,7 @@ package com.android.settings.notification; import android.content.Context; import android.content.Context; import android.view.View; import android.view.View; import android.widget.Button; import android.widget.Button; import android.widget.Toast; import androidx.preference.Preference; import androidx.preference.Preference; Loading Loading @@ -57,6 +58,8 @@ public class ImportanceResetPreferenceController extends BasePreferenceControlle @Override @Override public void onClick(View v) { public void onClick(View v) { mBackend.resetNotificationImportance(); mBackend.resetNotificationImportance(); Toast.makeText(mContext, R.string.reset_importance_completed, Toast.LENGTH_SHORT) .show(); } } @Override @Override Loading