aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-03-31 22:20:07 +0200
committerChristian Schneppe <christian@pix-art.de>2018-03-31 22:20:07 +0200
commit3c7dc29eb9ae754ea8060d4bff977badd218d3fd (patch)
tree80323432ebcf88caf8b3b33c24d4d2229538fc54 /src/main/java/de/pixart/messenger/ui
parentb748514f09595cf0661efc55aa9b6596cd5f94f0 (diff)
fixed openDialogs call when poping back stack
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationActivity.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationActivity.java b/src/main/java/de/pixart/messenger/ui/ConversationActivity.java
index b119d62ea..36b5de0c0 100644
--- a/src/main/java/de/pixart/messenger/ui/ConversationActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ConversationActivity.java
@@ -243,9 +243,12 @@ public class ConversationActivity extends XmppActivity implements OnConversation
}
private void showDialogsIfMainIsOverview() {
- Fragment fragment = getFragmentManager().findFragmentById(R.id.main_fragment);
+ if (xmppConnectionService == null) {
+ return;
+ }
+ final Fragment fragment = getFragmentManager().findFragmentById(R.id.main_fragment);
if (fragment != null && fragment instanceof ConversationsOverviewFragment) {
- if (ExceptionHelper.checkForCrash(this, this.xmppConnectionService)) {
+ if (ExceptionHelper.checkForCrash(this)) {
return;
}
openBatteryOptimizationDialogIfNeeded();
@@ -403,6 +406,7 @@ public class ConversationActivity extends XmppActivity implements OnConversation
public void onConversationSelected(Conversation conversation) {
if (ConversationFragment.getConversation(this) == conversation) {
Log.d(Config.LOGTAG, "ignore onConversationSelected() because conversation is already open");
+ return;
}
openConversation(conversation, null);
}