Skip to content

Commit ed980f6

Browse files
committed
Organize gcm settings preferences
1 parent f991680 commit ed980f6

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

play-services-core/src/main/res/xml/preferences_push_notification_settings.xml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,27 @@
1717
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
1818
xmlns:app="http://schemas.android.com/apk/res-auto">
1919

20-
<SwitchPreferenceCompat
21-
android:defaultValue="false"
22-
android:key="gcm_confirm_new_apps"
23-
android:layout="@layout/preference_material_single"
24-
android:persistent="false"
25-
android:summary="@string/pref_gcm_confirm_new_apps_summary"
26-
android:title="@string/pref_gcm_confirm_new_apps_title"
27-
app:iconSpaceReserved="false" />
20+
<PreferenceCategory
21+
android:layout="@layout/preference_material_category_small"
22+
app:allowDividerAbove="false"
23+
app:title="@string/prefcat_gcm_registers">
24+
25+
<SwitchPreferenceCompat
26+
android:defaultValue="false"
27+
android:key="gcm_confirm_new_apps"
28+
android:layout="@layout/preference_material_top"
29+
android:persistent="false"
30+
android:summary="@string/pref_gcm_confirm_new_apps_summary"
31+
android:title="@string/pref_gcm_confirm_new_apps_title"
32+
app:iconSpaceReserved="false" />
33+
34+
<Preference
35+
android:key="pref_push_notification_reset"
36+
android:layout="@layout/preference_material_bottom"
37+
android:summary="@string/pref_gcm_remove_registers_summary"
38+
android:title="@string/pref_gcm_remove_registers"
39+
app:iconSpaceReserved="false" />
40+
</PreferenceCategory>
2841

2942
<PreferenceCategory
3043
android:key="prefcat_networks"
@@ -80,18 +93,4 @@
8093
android:title="@string/network_type_other"
8194
app:dialogIcon="@drawable/ic_network_others" />
8295
</PreferenceCategory>
83-
84-
<PreferenceCategory
85-
android:layout="@layout/preference_material_category"
86-
app:allowDividerAbove="false"
87-
app:title="@string/prefcat_gcm_registers">
88-
89-
<Preference
90-
android:icon="@drawable/ic_unregister"
91-
android:key="pref_push_notification_reset"
92-
android:layout="@layout/preference_material_single"
93-
android:summary="@string/pref_gcm_remove_registers_summary"
94-
android:title="@string/pref_gcm_remove_registers"
95-
app:iconSpaceReserved="false" />
96-
</PreferenceCategory>
9796
</PreferenceScreen>

0 commit comments

Comments
 (0)