From adcbf118b681aa8f9169fef4cd359ec9f9adb7a7 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Mon, 10 Nov 2025 16:20:30 +0100 Subject: [PATCH] make use of new string, deprecate the old one --- .../java/org/thoughtcrime/securesms/RegistrationActivity.java | 2 +- .../securesms/preferences/AdvancedPreferenceFragment.java | 2 +- src/main/res/values/strings.xml | 1 + src/main/res/xml/preferences_advanced.xml | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/thoughtcrime/securesms/RegistrationActivity.java b/src/main/java/org/thoughtcrime/securesms/RegistrationActivity.java index adc744835..2714a91f6 100644 --- a/src/main/java/org/thoughtcrime/securesms/RegistrationActivity.java +++ b/src/main/java/org/thoughtcrime/securesms/RegistrationActivity.java @@ -127,7 +127,7 @@ public class RegistrationActivity extends BaseActionBarActivity implements DcEve ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setTitle( - isConfigured? R.string.pref_password_and_account_settings : R.string.manual_account_setup_option + isConfigured? R.string.edit_transport : R.string.manual_account_setup_option ); actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setHomeAsUpIndicator(R.drawable.ic_close_white_24dp); diff --git a/src/main/java/org/thoughtcrime/securesms/preferences/AdvancedPreferenceFragment.java b/src/main/java/org/thoughtcrime/securesms/preferences/AdvancedPreferenceFragment.java index 0d3f8f7cb..bc770cf89 100644 --- a/src/main/java/org/thoughtcrime/securesms/preferences/AdvancedPreferenceFragment.java +++ b/src/main/java/org/thoughtcrime/securesms/preferences/AdvancedPreferenceFragment.java @@ -216,7 +216,7 @@ public class AdvancedPreferenceFragment extends ListSummaryPreferenceFragment Preference passwordAndAccount = this.findPreference("password_account_settings_button"); if (passwordAndAccount != null) { passwordAndAccount.setOnPreferenceClickListener(((preference) -> { - boolean result = ScreenLockUtil.applyScreenLock(requireActivity(), getString(R.string.pref_password_and_account_settings), getString(R.string.enter_system_secret_to_continue), REQUEST_CODE_CONFIRM_CREDENTIALS_ACCOUNT); + boolean result = ScreenLockUtil.applyScreenLock(requireActivity(), getString(R.string.edit_transport), getString(R.string.enter_system_secret_to_continue), REQUEST_CODE_CONFIRM_CREDENTIALS_ACCOUNT); if (!result) { openRegistrationActivity(); } diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index fa950e519..5297e99bd 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -739,6 +739,7 @@ Profile Image Blocked Contacts Blocked contacts will appear here. + Password and Account Your profile image, name and bio will be sent together with your messages when communicating with other users. Your Name diff --git a/src/main/res/xml/preferences_advanced.xml b/src/main/res/xml/preferences_advanced.xml index fa859928d..182a5a61f 100644 --- a/src/main/res/xml/preferences_advanced.xml +++ b/src/main/res/xml/preferences_advanced.xml @@ -65,7 +65,7 @@ + android:title="@string/edit_transport"/>