don't cancel animation when switching accounts w/o init

This commit is contained in:
Daniel Gultsch 2018-02-10 13:32:37 +01:00
parent cb1a5e3c68
commit 64c956904d
1 changed files with 3 additions and 1 deletions

View File

@ -526,8 +526,10 @@ public abstract class XmppActivity extends Activity {
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NO_ANIMATION); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NO_ANIMATION);
} }
startActivity(intent); startActivity(intent);
if (init) {
overridePendingTransition(0, 0); overridePendingTransition(0, 0);
} }
}
protected void delegateUriPermissionsToService(Uri uri) { protected void delegateUriPermissionsToService(Uri uri) {
Intent intent = new Intent(this,XmppConnectionService.class); Intent intent = new Intent(this,XmppConnectionService.class);