From 64c956904de7ead7cc77cd29a2a8ce1a30112060 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 10 Feb 2018 13:32:37 +0100 Subject: [PATCH] don't cancel animation when switching accounts w/o init --- src/main/java/eu/siacs/conversations/ui/XmppActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java index 3428fe057..9a19bc4f0 100644 --- a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java @@ -526,7 +526,9 @@ public abstract class XmppActivity extends Activity { intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NO_ANIMATION); } startActivity(intent); - overridePendingTransition(0,0); + if (init) { + overridePendingTransition(0, 0); + } } protected void delegateUriPermissionsToService(Uri uri) {