Skip to content

Commit

Permalink
Merge branch 'master' into TIMOB-26889
Browse files Browse the repository at this point in the history
  • Loading branch information
ssjsamir committed Mar 25, 2019
2 parents 96b816a + 24b7308 commit 3c95f3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected void onCreate(Bundle savedInstanceState)
}
startActivity(resumeIntent);
finish();
overridePendingTransition(0, 0);
overridePendingTransition(android.R.anim.fade_in, 0);
} else {
// Launch a new root activity instance with JSActivity's intent embedded within launch intent.
Intent mainIntent = getPackageManager().getLaunchIntentForPackage(getPackageName());
Expand All @@ -146,7 +146,7 @@ protected void onCreate(Bundle savedInstanceState)
mainIntent.putExtra(TiC.EXTRA_TI_NEW_INTENT, getIntent());
}
finish();
overridePendingTransition(0, 0);
overridePendingTransition(android.R.anim.fade_in, 0);
startActivity(mainIntent);
}
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ public void run()
// Destroy this activity before it is shown.
finish();

// Disable this activity's enter/exit animation. (Looks bad if we keep it.)
// Disable activity's exit animation. (Looks bad if we keep it on a Pixel XL.)
// Note: Must be done after calling finish() above.
overridePendingTransition(0, 0);
overridePendingTransition(android.R.anim.fade_in, 0);
return;
}

Expand All @@ -218,7 +218,7 @@ public void run()
this.isDuplicateInstance = true;
activityOnCreate(savedInstanceState);
finish();
overridePendingTransition(0, 0);
overridePendingTransition(android.R.anim.fade_in, 0);
final Intent relaunchIntent = isNotMainIntent ? mainIntent : newIntent;
if (isNotMainIntent && (newIntent != null)) {
// Embed this destroyed activity's intent within the new launch intent.
Expand Down

0 comments on commit 3c95f3b

Please sign in to comment.