mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-18 14:07:30 +00:00
b0216e1494
1) The system does actually enforce having a BROADCAST_SMS permission on the SMS receiver. Break out the "delivered" parts of this into a separate Receiver, so the permission won't trip up GB devices. 2) The system does actually enforce having "quick response" intents. Add a no-op for now. 3) Add a "make default" prompt. 4) Update settings to reflect what's going on in KitKat.
170 lines
9.5 KiB
XML
170 lines
9.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<PreferenceCategory android:key="general_category" android:title="@string/preferences__general">
|
|
<CheckBoxPreference android:defaultValue="true"
|
|
android:key="pref_all_sms"
|
|
android:summary="@string/preferences__use_textsecure_for_viewing_and_storing_all_incoming_text_messages"
|
|
android:title="@string/preferences__pref_all_sms_title" />
|
|
|
|
<CheckBoxPreference android:defaultValue="true"
|
|
android:key="pref_all_mms"
|
|
android:summary="@string/preferences__use_textsecure_for_viewing_and_storing_all_incoming_multimedia_messages"
|
|
android:title="@string/preferences__pref_all_mms_title" />
|
|
|
|
<Preference android:key="pref_set_default"
|
|
android:title="@string/preferences__make_default_sms_app"
|
|
android:summary="@string/preferences__make_textsecure_the_default_sms_mms_app" />
|
|
|
|
<CheckBoxPreference android:defaultValue="false"
|
|
android:key="pref_delivery_report_sms"
|
|
android:summary="@string/preferences__request_a_delivery_report_for_each_sms_message_you_send"
|
|
android:title="@string/preferences__sms_delivery_reports" />
|
|
|
|
</PreferenceCategory>
|
|
<PreferenceCategory android:title="@string/preferences__notifications">
|
|
<CheckBoxPreference android:key="pref_key_enable_notifications"
|
|
android:title="@string/preferences__notifications"
|
|
android:summary="@string/preferences__display_message_notifications_in_status_bar"
|
|
android:defaultValue="true" />
|
|
<ListPreference
|
|
android:key="pref_led_color"
|
|
android:defaultValue="green"
|
|
android:title="@string/preferences__led_color"
|
|
android:dependency="pref_key_enable_notifications"
|
|
android:summary="@string/preferences__change_notification_led_color"
|
|
android:entries="@array/pref_led_color_entries"
|
|
android:entryValues="@array/pref_led_color_values"
|
|
android:dialogTitle="@string/preferences__select_led_color" />
|
|
|
|
<org.thoughtcrime.securesms.preferences.LedBlinkPatternListPreference
|
|
android:key="pref_led_blink"
|
|
android:defaultValue="500,2000"
|
|
android:title="@string/preferences__pref_led_blink_title"
|
|
android:dependency="pref_key_enable_notifications"
|
|
android:summary="@string/preferences__change_notification_blink_pattern"
|
|
android:entries="@array/pref_led_blink_pattern_entries"
|
|
android:entryValues="@array/pref_led_blink_pattern_values"
|
|
android:dialogTitle="@string/preferences__pref_led_blink_dialogtitle" />
|
|
|
|
|
|
<RingtonePreference android:layout="?android:attr/preferenceLayoutChild"
|
|
android:dependency="pref_key_enable_notifications"
|
|
android:key="pref_key_ringtone"
|
|
android:title="@string/preferences__sound"
|
|
android:ringtoneType="notification"
|
|
android:defaultValue="content://settings/system/notification_sound" />
|
|
|
|
<CheckBoxPreference android:key="pref_key_inthread_notifications"
|
|
android:title="@string/preferences__inthread_notifications"
|
|
android:summary="@string/preferences__play_inthread_notifications"
|
|
android:layout="?android:attr/preferenceLayoutChild"
|
|
android:dependency="pref_key_enable_notifications"
|
|
android:defaultValue="true" />
|
|
|
|
<CheckBoxPreference android:layout="?android:attr/preferenceLayoutChild"
|
|
android:dependency="pref_key_enable_notifications"
|
|
android:key="pref_key_vibrate"
|
|
android:defaultValue="true"
|
|
android:title="@string/preferences__vibrate"
|
|
android:summary="@string/preferences__also_vibrate_when_notified" />
|
|
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory android:title="Input Settings">
|
|
<CheckBoxPreference android:defaultValue="false"
|
|
android:key="pref_enter_key"
|
|
android:title="Enable enter key"
|
|
android:summary="Replace the smiley key with an enter key"/>
|
|
|
|
<CheckBoxPreference android:defaultValue="false"
|
|
android:key="pref_enter_sends"
|
|
android:summary="@string/preferences__pressing_the_enter_key_will_send_text_messages"
|
|
android:title="@string/preferences__pref_enter_sends_title" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory android:title="@string/preferences__appearance">
|
|
<ListPreference android:key="pref_theme"
|
|
android:title="@string/preferences__theme"
|
|
android:entries="@array/pref_theme_entries"
|
|
android:entryValues="@array/pref_theme_values"
|
|
android:defaultValue="light">
|
|
</ListPreference>
|
|
|
|
<ListPreference android:key="pref_language"
|
|
android:title="@string/preferences__language"
|
|
android:entries="@array/language_entries"
|
|
android:entryValues="@array/language_values"
|
|
android:defaultValue="zz"/>
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory android:title="@string/preferences__storage">
|
|
<CheckBoxPreference android:defaultValue="false"
|
|
android:key="pref_trim_threads"
|
|
android:summary="@string/preferences__automatically_delete_older_messages_once_a_conversation_thread_exceeds_a_specified_length"
|
|
android:title="@string/preferences__delete_old_messages" />
|
|
|
|
<EditTextPreference android:defaultValue="500"
|
|
android:key="pref_trim_length"
|
|
android:title="@string/preferences__conversation_length_limit"
|
|
android:inputType="number"
|
|
android:dependency="pref_trim_threads" />
|
|
|
|
<Preference android:key="pref_trim_now"
|
|
android:title="@string/preferences__trim_all_threads_now"
|
|
android:summary="@string/preferences__scan_through_all_conversation_threads_and_enforce_conversation_length_limits"
|
|
android:dependency="pref_trim_threads" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory android:title="@string/preferences__display_settings" android:key="pref_display_category">
|
|
|
|
<Preference android:key="pref_choose_identity"
|
|
android:title="@string/preferences__choose_identity"
|
|
android:summary="@string/preferences__choose_your_contact_entry_from_the_contacts_list"/>
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory android:title="@string/preferences__passphrase">
|
|
|
|
<Preference android:key="pref_change_passphrase"
|
|
android:title="@string/preferences__change_passphrase"
|
|
android:summary="@string/preferences__change_my_passphrase"
|
|
android:dependency="pref_disable_passphrase"/>
|
|
|
|
<CheckBoxPreference android:key="pref_disable_passphrase"
|
|
android:defaultValue="false"
|
|
android:title="@string/preferences__disable_passphrase"
|
|
android:summary="@string/preferences__disable_local_encryption_of_messages_and_keys"
|
|
android:disableDependentsState="true"/>
|
|
|
|
<CheckBoxPreference android:defaultValue="false"
|
|
android:key="pref_timeout_passphrase"
|
|
android:title="@string/preferences__timeout_passphrase"
|
|
android:summary="@string/preferences__forget_passphrase_from_memory_after_some_interval"
|
|
android:dependency="pref_disable_passphrase"/>
|
|
|
|
<org.thoughtcrime.securesms.preferences.PassphraseTimeoutPreference
|
|
android:key="pref_timeout_interval"
|
|
android:defaultValue="300"
|
|
android:title="@string/preferences__pref_timeout_interval_title"
|
|
android:summary="@string/preferences__the_amount_of_time_to_wait_before_forgetting_passphrase"
|
|
android:dependency="pref_timeout_passphrase"
|
|
android:dialogTitle="@string/preferences__pref_timeout_interval_dialogtitle" />
|
|
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory android:title="@string/preferences__advanced">
|
|
<CheckBoxPreference android:defaultValue="true"
|
|
android:key="pref_auto_complete_key_exchange"
|
|
android:title="@string/preferences__complete_key_exchanges"
|
|
android:summary="@string/preferences__automatically_complete_key_exchanges_for_new_sessions_or_for_existing_sessions_with_the_same_identity_key" />
|
|
|
|
<Preference android:key="pref_mms_preferences"
|
|
android:title="@string/preferences__advanced_mms_access_point_names"/>
|
|
</PreferenceCategory>
|
|
</PreferenceScreen>
|