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();
}