aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-02-10 19:39:50 +0100
committerChristian Schneppe <christian@pix-art.de>2018-02-10 19:39:50 +0100
commitfb9924c82651ce0d3bd2e8d56665bd923123818e (patch)
tree8d8e2fc437fcdb122be2b5cecbe54e9b05068f9b /src/main
parentffba95da5691912edea172bae80b062dacc63540 (diff)
don't cancel animation when switching accounts w/o init
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/ui/XmppActivity.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/XmppActivity.java b/src/main/java/de/pixart/messenger/ui/XmppActivity.java
index 21340b425..4320c4a17 100644
--- a/src/main/java/de/pixart/messenger/ui/XmppActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/XmppActivity.java
@@ -541,7 +541,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) {