File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
WordPress/src/main/java/org/wordpress/android/ui Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1280,7 +1280,15 @@ public static void showMainActivityAndSiteCreationActivity(Activity activity) {
1280
1280
}
1281
1281
1282
1282
public static void showSignInForResult (Activity activity ) {
1283
+ showSignInForResult (activity , false );
1284
+ }
1285
+
1286
+ public static void showSignInForResult (Activity activity , boolean clearTop ) {
1283
1287
Intent intent = new Intent (activity , LoginActivity .class );
1288
+ if (clearTop ) {
1289
+ intent .setFlags (
1290
+ Intent .FLAG_ACTIVITY_CLEAR_TOP | Intent .FLAG_ACTIVITY_NEW_TASK | Intent .FLAG_ACTIVITY_CLEAR_TASK );
1291
+ }
1284
1292
activity .startActivityForResult (intent , RequestCodes .ADD_ACCOUNT );
1285
1293
}
1286
1294
Original file line number Diff line number Diff line change @@ -1403,7 +1403,7 @@ private void handleSiteRemoved() {
1403
1403
if (BuildConfig .IS_JETPACK_APP ) {
1404
1404
ActivityLauncher .showSignInForResultJetpackOnly (this );
1405
1405
} else {
1406
- ActivityLauncher .showSignInForResult (this );
1406
+ ActivityLauncher .showSignInForResult (this , true );
1407
1407
}
1408
1408
} else {
1409
1409
SiteModel site = getSelectedSite ();
You can’t perform that action at this time.
0 commit comments