improve switch
This commit is contained in:
parent
22f3872fad
commit
8a62c552b5
|
@ -103,7 +103,6 @@
|
|||
<activity
|
||||
android:name="app.fedilab.android.activities.MainActivity"
|
||||
android:label="@string/app_name"
|
||||
android:launchMode="singleTop"
|
||||
android:windowSoftInputMode="adjustResize"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:theme="@style/AppThemeDark_NoActionBar">
|
||||
|
|
|
@ -720,7 +720,6 @@ public class Helper {
|
|||
editor.commit();
|
||||
Intent changeAccount = new Intent(activity, MainActivity.class);
|
||||
changeAccount.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
activity.finish();
|
||||
activity.startActivity(changeAccount);
|
||||
}
|
||||
|
||||
|
@ -1743,7 +1742,6 @@ public class Helper {
|
|||
changeAccount.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
if (notificationIntent)
|
||||
changeAccount.putExtra(INTENT_ACTION, NOTIFICATION_INTENT);
|
||||
activity.finish();
|
||||
activity.startActivity(changeAccount);
|
||||
}
|
||||
|
||||
|
@ -2143,7 +2141,6 @@ public class Helper {
|
|||
Toasty.info(activity, activity.getString(R.string.toast_account_changed, "@" + accountChoice.getAcct() + "@" + accountChoice.getInstance()), Toast.LENGTH_LONG).show();
|
||||
Intent changeAccount = new Intent(activity, MainActivity.class);
|
||||
changeAccount.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
activity.finish();
|
||||
activity.startActivity(changeAccount);
|
||||
} else { //The account was logged out
|
||||
Intent intent = new Intent(activity, LoginActivity.class);
|
||||
|
@ -2202,7 +2199,6 @@ public class Helper {
|
|||
editor.commit();
|
||||
Intent changeAccount = new Intent(activity, MainActivity.class);
|
||||
changeAccount.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
activity.finish();
|
||||
activity.startActivity(changeAccount);
|
||||
} else { //The account was logged out
|
||||
Intent intent = new Intent(activity, LoginActivity.class);
|
||||
|
|
Loading…
Reference in New Issue