make use of new string, deprecate the old one

This commit is contained in:
B. Petersen
2025-11-10 16:20:30 +01:00
committed by bjoern
parent 0e185eff4c
commit adcbf118b6
4 changed files with 4 additions and 3 deletions
@@ -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);
@@ -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();
}
+1
View File
@@ -739,6 +739,7 @@
<string name="pref_profile_photo">Profile Image</string>
<string name="pref_blocked_contacts">Blocked Contacts</string>
<string name="blocked_empty_hint">Blocked contacts will appear here.</string>
<!-- deprecated -->
<string name="pref_password_and_account_settings">Password and Account</string>
<string name="pref_who_can_see_profile_explain">Your profile image, name and bio will be sent together with your messages when communicating with other users.</string>
<string name="pref_your_name">Your Name</string>
+1 -1
View File
@@ -65,7 +65,7 @@
<PreferenceCategory android:title="@string/pref_server">
<Preference android:key="password_account_settings_button"
android:title="@string/pref_password_and_account_settings"/>
android:title="@string/edit_transport"/>
<Preference android:key="proxy_settings_button"
android:title="@string/proxy_settings"/>