mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 23:47:26 +00:00
Add ability to disable local encryption passphrase.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView style="@style/Registration.Label"
|
||||
android:id="@+id/old_passphrase_label"
|
||||
android:layout_width="fill_parent"
|
||||
android:textAllCaps="true"
|
||||
android:text="@string/change_passphrase_activity__old_passphrase" />
|
||||
|
@@ -14,6 +14,13 @@
|
||||
<string name="ApplicationPreferencesActivity_are_you_sure_you_would_like_to_immediately_trim_all_conversation_threads_to_the_s_most_recent_messages">Are you sure you would like to immediately trim all conversation threads to the %s most recent messages?</string>
|
||||
<string name="ApplicationPreferencesActivity_delete">Delete</string>
|
||||
<string name="ApplicationPreferencesActivity_my">My</string>
|
||||
<string name="ApplicationPreferencesActivity_disable_storage_encryption">Disable storage encryption?</string>
|
||||
<string name="ApplicationPreferencesActivity_warning_this_will_disable_storage_encryption_for_all_messages">
|
||||
Warning, this will disable storage encryption for all messages and keys. Your encrypted
|
||||
sessions will continue to function, but anyone with physical access to your device will be
|
||||
able to access them.
|
||||
</string>
|
||||
<string name="ApplicationPreferencesActivity_disable">Disable</string>
|
||||
|
||||
<!-- AttachmentTypeSelectorAdapter -->
|
||||
|
||||
|
@@ -115,23 +115,30 @@
|
||||
|
||||
<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"/>
|
||||
<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:defaultValue="false"
|
||||
android:key="pref_timeout_passphrase"
|
||||
android:summary="@string/preferences__forget_passphrase_from_memory_after_some_interval"
|
||||
android:title="@string/preferences__timeout_passphrase" />
|
||||
<CheckBoxPreference android:key="pref_disable_passphrase"
|
||||
android:defaultValue="false"
|
||||
android:title="Disable Passphrase"
|
||||
android:disableDependentsState="true"
|
||||
android:summary="Disable local encryption of messages and keys"/>
|
||||
|
||||
<CheckBoxPreference android:defaultValue="false"
|
||||
android:key="pref_timeout_passphrase"
|
||||
android:summary="@string/preferences__forget_passphrase_from_memory_after_some_interval"
|
||||
android:title="@string/preferences__timeout_passphrase"
|
||||
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" />
|
||||
<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>
|
||||
@@ -142,16 +149,6 @@
|
||||
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" />
|
||||
|
||||
<PreferenceScreen android:title="@string/preferences__identity_key_settings">
|
||||
<Preference android:key="pref_view_identity"
|
||||
android:title="@string/preferences__view_my_identity_key"
|
||||
android:summary="@string/preferences__view_my_identity_key"/>
|
||||
|
||||
<Preference android:key="pref_manage_identity"
|
||||
android:title="@string/preferences__manage_identity_keys"
|
||||
android:summary="@string/preferences__manage_configured_identity_keys"/>
|
||||
</PreferenceScreen>
|
||||
|
||||
<PreferenceScreen android:title="@string/preferences__advanced_mms_access_point_names">
|
||||
<CheckBoxPreference android:key="pref_use_local_apns"
|
||||
android:defaultValue="false"
|
||||
|
Reference in New Issue
Block a user