Merge "Notification settings update." into oc-dev

This commit is contained in:
TreeHugger Robot
2017-06-19 17:34:39 +00:00
committed by Android (Google) Code Review
2 changed files with 25 additions and 19 deletions

View File

@@ -37,6 +37,9 @@
android:title="@string/notification_vibrate_title"
settings:useAdditionalSummary="true" />
<PreferenceCategory
android:title="@string/advanced_apps">
<!-- Show badge -->
<com.android.settingslib.RestrictedSwitchPreference
android:key="badge"
@@ -61,4 +64,7 @@
android:title="@string/app_notification_override_dnd_title"
android:summary="@string/app_notification_override_dnd_summary"
settings:useAdditionalSummary="true" />
</PreferenceCategory>
</PreferenceScreen>

View File

@@ -339,15 +339,15 @@ public class AppNotificationSettings extends NotificationSettingsBase {
case NotificationManager.IMPORTANCE_NONE:
return getContext().getString(R.string.notification_toggle_off);
case NotificationManager.IMPORTANCE_MIN:
return getContext().getString(R.string.notification_importance_min_title);
return getContext().getString(R.string.notification_importance_min);
case NotificationManager.IMPORTANCE_LOW:
return getContext().getString(R.string.notification_importance_low_title);
return getContext().getString(R.string.notification_importance_low);
case NotificationManager.IMPORTANCE_DEFAULT:
return getContext().getString(R.string.notification_importance_default_title);
return getContext().getString(R.string.notification_importance_default);
case NotificationManager.IMPORTANCE_HIGH:
case NotificationManager.IMPORTANCE_MAX:
default:
return getContext().getString(R.string.notification_importance_high_title);
return getContext().getString(R.string.notification_importance_high);
}
}