2011-12-20 18:20:44 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2007-2008 Esmertec AG.
|
|
|
|
* Copyright (C) 2007-2008 The Android Open Source Project
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
-->
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
2012-09-08 03:03:23 +00:00
|
|
|
<PreferenceCategory android:title="@string/use_settings">
|
2011-12-20 18:20:44 +00:00
|
|
|
<CheckBoxPreference android:defaultValue="true"
|
|
|
|
android:key="pref_all_sms"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:summary="@string/use_textsecure_for_viewing_and_storing_all_incoming_text_messages"
|
2011-12-20 18:20:44 +00:00
|
|
|
android:title="Use for all SMS" />
|
|
|
|
|
|
|
|
<CheckBoxPreference android:defaultValue="true"
|
|
|
|
android:key="pref_all_mms"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:summary="@string/use_textsecure_for_viewing_and_storing_all_incoming_multimedia_messages"
|
2011-12-20 18:20:44 +00:00
|
|
|
android:title="Use for all MMS" />
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2011-12-20 18:20:44 +00:00
|
|
|
</PreferenceCategory>
|
|
|
|
|
2012-09-08 03:03:23 +00:00
|
|
|
<PreferenceCategory android:title="@string/input_settings">
|
2011-12-20 18:20:44 +00:00
|
|
|
<CheckBoxPreference android:defaultValue="false"
|
|
|
|
android:key="pref_enter_sends"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:summary="@string/pressing_the_enter_key_will_send_text_messages"
|
2011-12-20 18:20:44 +00:00
|
|
|
android:title="Enter Sends" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
2012-09-08 03:03:23 +00:00
|
|
|
<PreferenceCategory android:title="@string/display_settings">
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2011-12-20 18:20:44 +00:00
|
|
|
<Preference android:key="pref_choose_identity"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:title="@string/choose_identity"
|
|
|
|
android:summary="@string/choose_your_contact_entry_from_the_contacts_list"/>
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2011-12-20 18:20:44 +00:00
|
|
|
</PreferenceCategory>
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2012-09-08 03:03:23 +00:00
|
|
|
<PreferenceCategory android:title="@string/encryption_settings">
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<Preference android:key="pref_change_passphrase"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:title="@string/change_passphrase"
|
|
|
|
android:summary="@string/change_my_passphrase"/>
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<CheckBoxPreference android:defaultValue="true"
|
|
|
|
android:key="pref_auto_complete_key_exchange"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:title="@string/complete_key_exchanges"
|
|
|
|
android:summary="@string/automatically_complete_key_exchanges_for_new_sessions_or_for_existing_sessions_with_the_same_identity_key" />
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2011-12-20 18:20:44 +00:00
|
|
|
<CheckBoxPreference android:defaultValue="true"
|
|
|
|
android:key="pref_key_tag_whitespace"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:summary="@string/include_a_whitespace_tag_at_the_end_of_every_non_encrypted_message"
|
|
|
|
android:title="@string/include_whitespace_tag" />
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2011-12-20 18:20:44 +00:00
|
|
|
<CheckBoxPreference android:defaultValue="true"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:key="pref_send_identity_key"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:summary="@string/sign_key_exchange_messages_with_identity_key"
|
|
|
|
android:title="@string/sign_key_exchange" />
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2011-12-20 18:20:44 +00:00
|
|
|
<CheckBoxPreference android:defaultValue="false"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:key="pref_timeout_passphrase"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:summary="@string/forget_passphrase_from_memory_after_some_interval"
|
|
|
|
android:title="@string/timeout_passphrase" />
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
|
2011-12-20 18:20:44 +00:00
|
|
|
<org.thoughtcrime.securesms.preferences.PassphraseTimeoutPreference
|
2012-07-20 02:23:49 +00:00
|
|
|
android:key="pref_timeout_interval"
|
|
|
|
android:defaultValue="300"
|
|
|
|
android:title="Timeout interval"
|
|
|
|
android:summary="The amount of time to wait before forgetting passphrase from memory"
|
|
|
|
android:dependency="pref_timeout_passphrase"
|
|
|
|
android:dialogTitle="Select Passphrase Timeout" />
|
|
|
|
|
2011-12-20 18:20:44 +00:00
|
|
|
</PreferenceCategory>
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2012-09-08 03:03:23 +00:00
|
|
|
<PreferenceCategory android:title="@string/identity_key_settings">
|
2012-07-20 02:23:49 +00:00
|
|
|
<Preference android:key="pref_view_identity"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:title="@string/view_my_identity_key"
|
|
|
|
android:summary="@string/view_my_identity_key"/>
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<Preference android:key="pref_export_identity"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:title="@string/export_my_identity_key"
|
|
|
|
android:summary="@string/export_my_identity_key"/>
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<Preference android:key="pref_import_identity"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:title="@string/import_contacts_key"
|
|
|
|
android:summary="@string/import_an_identity_key_from_a_contact"/>
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<Preference android:key="pref_manage_identity"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:title="@string/manage_identity_keys"
|
|
|
|
android:summary="@string/manage_configured_identity_keys"/>
|
2011-12-20 18:20:44 +00:00
|
|
|
</PreferenceCategory>
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2012-09-08 03:03:23 +00:00
|
|
|
<PreferenceCategory android:title="@string/notification_settings">
|
2011-12-20 18:20:44 +00:00
|
|
|
<CheckBoxPreference android:key="pref_key_enable_notifications"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:title="@string/notifications"
|
|
|
|
android:summary="@string/display_message_notifications_in_status_bar"
|
2011-12-20 18:20:44 +00:00
|
|
|
android:defaultValue="true" />
|
|
|
|
<ListPreference
|
2012-07-20 02:23:49 +00:00
|
|
|
android:key="pref_led_color"
|
|
|
|
android:defaultValue="green"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:title="@string/led_color"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:dependency="pref_key_enable_notifications"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:summary="@string/change_notification_led_color"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:entries="@array/pref_led_color_entries"
|
|
|
|
android:entryValues="@array/pref_led_color_values"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:dialogTitle="@string/select_led_color" />
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.preferences.LedBlinkPatternListPreference
|
2011-12-20 18:20:44 +00:00
|
|
|
android:key="pref_led_blink"
|
|
|
|
android:defaultValue="500,2000"
|
|
|
|
android:title="LED Blink Pattern"
|
|
|
|
android:dependency="pref_key_enable_notifications"
|
|
|
|
android:summary="Change notification LED blink pattern"
|
|
|
|
android:entries="@array/pref_led_blink_pattern_entries"
|
|
|
|
android:entryValues="@array/pref_led_blink_pattern_values"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:dialogTitle="LED Blink Pattern" />
|
|
|
|
|
|
|
|
|
2011-12-20 18:20:44 +00:00
|
|
|
<RingtonePreference android:layout="?android:attr/preferenceLayoutChild"
|
|
|
|
android:dependency="pref_key_enable_notifications"
|
|
|
|
android:key="pref_key_ringtone"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:title="@string/select_ringtone"
|
2011-12-20 18:20:44 +00:00
|
|
|
android:ringtoneType="notification"
|
|
|
|
android:defaultValue="content://settings/system/notification_sound" />
|
|
|
|
<CheckBoxPreference android:layout="?android:attr/preferenceLayoutChild"
|
|
|
|
android:dependency="pref_key_enable_notifications"
|
|
|
|
android:key="pref_key_vibrate"
|
|
|
|
android:defaultValue="true"
|
2012-09-08 03:03:23 +00:00
|
|
|
android:title="@string/vibrate"
|
|
|
|
android:summary="@string/also_vibrate_when_notified" />
|
2011-12-20 18:20:44 +00:00
|
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|