mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
on account-switching, force finishing all activities
This commit is contained in:
@@ -232,11 +232,11 @@ public class AccountManager {
|
||||
.setSingleChoiceItems(menu.toArray(new String[menu.size()]), presel, (dialog, which) -> {
|
||||
if (which==addAccount) {
|
||||
beginAccountCreation(activity);
|
||||
activity.finishAffinity();
|
||||
activity.startActivity(new Intent(activity, WelcomeActivity.class));
|
||||
activity.finish();
|
||||
} else { // switch account
|
||||
switchAccount(activity, accounts.get(which));
|
||||
activity.finish();
|
||||
activity.finishAffinity();
|
||||
activity.startActivity(new Intent(activity.getApplicationContext(), ConversationListActivity.class));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user