Merge "Notification settings update." into oc-dr1-dev am: cd9224a058

am: eeda4ae540

Change-Id: I3139992a754e69e8ef1e2da858403a0e3b3f3b79
This commit is contained in:
Alison Cichowlas
2017-06-19 15:15:31 +00:00
committed by android-build-merger
2 changed files with 25 additions and 19 deletions

View File

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

View File

@@ -338,15 +338,15 @@ public class AppNotificationSettings extends NotificationSettingsBase {
case NotificationManager.IMPORTANCE_NONE: case NotificationManager.IMPORTANCE_NONE:
return getContext().getString(R.string.notification_toggle_off); return getContext().getString(R.string.notification_toggle_off);
case NotificationManager.IMPORTANCE_MIN: case NotificationManager.IMPORTANCE_MIN:
return getContext().getString(R.string.notification_channel_summary_min); return getContext().getString(R.string.notification_importance_min);
case NotificationManager.IMPORTANCE_LOW: case NotificationManager.IMPORTANCE_LOW:
return getContext().getString(R.string.notification_channel_summary_low); return getContext().getString(R.string.notification_importance_low);
case NotificationManager.IMPORTANCE_DEFAULT: case NotificationManager.IMPORTANCE_DEFAULT:
return getContext().getString(R.string.notification_channel_summary_default); return getContext().getString(R.string.notification_importance_default);
case NotificationManager.IMPORTANCE_HIGH: case NotificationManager.IMPORTANCE_HIGH:
case NotificationManager.IMPORTANCE_MAX: case NotificationManager.IMPORTANCE_MAX:
default: default:
return getContext().getString(R.string.notification_channel_summary_high); return getContext().getString(R.string.notification_importance_high);
} }
} }