• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


Commit MetaInfo

修訂04f77b3a6f0ec50c65534a9f54aed3a738b2284b (tree)
時間2017-06-20 00:15:50
作者Alison Cichowlas <asc@goog...>
CommiterAlison Cichowlas

Log Message

Notification settings update.

- Use "what happens" descriptors instead of priority level names in summary
- Group some settings under Advanced header.

Bug: 62705435
Test: make RunSettingsRoboTests; manual verification
Merged-In: Iac31575d894d7f3532c8e631ee9d77ee21830b29
Change-Id: Iac31575d894d7f3532c8e631ee9d77ee21830b29

Change Summary

差異

--- a/res/xml/upgraded_channel_notification_settings.xml
+++ b/res/xml/upgraded_channel_notification_settings.xml
@@ -37,28 +37,34 @@
3737 android:title="@string/notification_vibrate_title"
3838 settings:useAdditionalSummary="true" />
3939
40- <!-- Show badge -->
41- <com.android.settingslib.RestrictedSwitchPreference
42- android:key="badge"
43- android:title="@string/notification_channel_badge_title"
44- settings:useAdditionalSummary="true"
45- settings:restrictedSwitchSummary="@string/enabled_by_admin" />
40+ <PreferenceCategory
41+ android:title="@string/advanced_apps">
4642
47- <!-- Lights -->
48- <com.android.settingslib.RestrictedSwitchPreference
49- android:key="lights"
50- android:title="@string/notification_show_lights_title"
51- settings:useAdditionalSummary="true" />
43+ <!-- Show badge -->
44+ <com.android.settingslib.RestrictedSwitchPreference
45+ android:key="badge"
46+ android:title="@string/notification_channel_badge_title"
47+ settings:useAdditionalSummary="true"
48+ settings:restrictedSwitchSummary="@string/enabled_by_admin" />
49+
50+ <!-- Lights -->
51+ <com.android.settingslib.RestrictedSwitchPreference
52+ android:key="lights"
53+ android:title="@string/notification_show_lights_title"
54+ settings:useAdditionalSummary="true" />
5255
53- <!-- Visibility Override -->
54- <com.android.settings.notification.RestrictedDropDownPreference
56+ <!-- Visibility Override -->
57+ <com.android.settings.notification.RestrictedDropDownPreference
5558 android:key="visibility_override"
5659 android:title="@string/app_notification_visibility_override_title" />
5760
58- <!-- Bypass DND -->
59- <com.android.settingslib.RestrictedSwitchPreference
61+ <!-- Bypass DND -->
62+ <com.android.settingslib.RestrictedSwitchPreference
6063 android:key="bypass_dnd"
6164 android:title="@string/app_notification_override_dnd_title"
6265 android:summary="@string/app_notification_override_dnd_summary"
6366 settings:useAdditionalSummary="true" />
67+
68+ </PreferenceCategory>
69+
6470 </PreferenceScreen>
--- a/src/com/android/settings/notification/AppNotificationSettings.java
+++ b/src/com/android/settings/notification/AppNotificationSettings.java
@@ -339,15 +339,15 @@ public class AppNotificationSettings extends NotificationSettingsBase {
339339 case NotificationManager.IMPORTANCE_NONE:
340340 return getContext().getString(R.string.notification_toggle_off);
341341 case NotificationManager.IMPORTANCE_MIN:
342- return getContext().getString(R.string.notification_importance_min_title);
342+ return getContext().getString(R.string.notification_importance_min);
343343 case NotificationManager.IMPORTANCE_LOW:
344- return getContext().getString(R.string.notification_importance_low_title);
344+ return getContext().getString(R.string.notification_importance_low);
345345 case NotificationManager.IMPORTANCE_DEFAULT:
346- return getContext().getString(R.string.notification_importance_default_title);
346+ return getContext().getString(R.string.notification_importance_default);
347347 case NotificationManager.IMPORTANCE_HIGH:
348348 case NotificationManager.IMPORTANCE_MAX:
349349 default:
350- return getContext().getString(R.string.notification_importance_high_title);
350+ return getContext().getString(R.string.notification_importance_high);
351351 }
352352
353353 }