Add list list preference for #148

This commit is contained in:
l3d00m
2015-09-02 12:02:40 +02:00
parent eb6caadd42
commit 5e3d75bbd8
7 changed files with 90 additions and 44 deletions
+7 -1
View File
@@ -196,7 +196,7 @@
<string name="pref_wake">Wake phone</string>
<string name="pref_wake_summary">Turn your screen on when you receive a new message</string>
<string name="pref_notifications_private">Private notifications</string>
<string name="pref_notifications_private_summary">Hide message text in notifications</string>
<string name="pref_notifications_private_summary">Tap to change what should be hidden in notfication</string>
<string name="pref_ringtone">Notification sound</string>
<string name="pref_ringtone_summary">Select a notification sound</string>
<string name="pref_ticker">Show ticker</string>
@@ -778,6 +778,12 @@
<item>Send message</item>
</string-array>
<string-array name="notification_private_options">
<item>Show all</item>
<item>Hide message</item>
<item>Hide message and sender</item>
</string-array>
<!-- Max MMS attachment sizes. I.e. will compress pictures that are larger than 300 KB down to
under 300KB. -->
<string-array name="max_mms_attachment_sizes">
+2 -2
View File
@@ -106,8 +106,8 @@
android:defaultValue="true"
android:key="pref_key_ticker" />
<Preference
android:defaultValue="false"
android:key="pref_key_notifications_private" />
android:defaultValue="0"
android:key="pref_key_notification_private" />
<Preference
android:defaultValue="true"
android:key="pref_key_vibration" />
@@ -39,14 +39,14 @@
android:summary="@string/pref_ticker_summary"
android:title="@string/pref_ticker"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="false"
android:dependency="pref_key_notifications"
android:key="pref_key_notifications_private"
<ListPreference
android:defaultValue="0"
android:entries="@array/notification_private_options"
android:entryValues="@array/enter_button_values"
android:key="pref_key_notification_private"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_notifications_private_summary"
android:title="@string/pref_notifications_private"
android:widgetLayout="@layout/view_checkbox" />
android:title="@string/pref_notifications_private" />
<CheckBoxPreference
android:defaultValue="true"
android:dependency="pref_key_notifications"