This commit is contained in:
B. Petersen
2020-04-24 18:29:28 +02:00
parent d0feb55a8d
commit 8461c13f65
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -356,6 +356,7 @@
<string name="add_account">Add account</string>
<string name="delete_account">Delete account</string>
<string name="delete_account_ask">Are you sure you want to delete your account data?</string>
<string name="switching_account">Switching account…</string>
<!-- share and forward messages -->
<!-- Translators: Title shown above a chat/contact list; the user selects the recipient of the messages he wants to forward to -->
@@ -184,7 +184,7 @@ public class AccountManager {
Account prevAccount = maybeGetAccount(new File(activity.getFilesDir(), prevDbName));
if (prevAccount!=null) {
new SwitchAccountAsyncTask(activity, R.string.switch_account, prevAccount, inCreationDbName).execute();
new SwitchAccountAsyncTask(activity, R.string.switching_account, prevAccount, inCreationDbName).execute();
}
}
@@ -284,11 +284,11 @@ public class AccountManager {
.setSingleChoiceItems(menu.toArray(new String[menu.size()]), presel, (dialog, which) -> {
dialog.dismiss();
if (which==addAccount) {
new SwitchAccountAsyncTask(activity, R.string.add_account, null, null).execute();
new SwitchAccountAsyncTask(activity, R.string.one_moment, null, null).execute();
} else { // switch account
Account account = accounts.get(which);
if (!account.isCurrent()) {
new SwitchAccountAsyncTask(activity, R.string.switch_account, account, null).execute();
new SwitchAccountAsyncTask(activity, R.string.switching_account, account, null).execute();
}
}
});