aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-03-30 22:17:33 +0200
committerChristian Schneppe <christian@pix-art.de>2018-03-30 22:17:33 +0200
commita9546bab57ee46a7dacc4f1646514728ce5f6234 (patch)
tree7bf4faad02b42b22d96d3da1dc583fab4c81944d
parent10f067cd89aaf18cc280e4a02e770278c419fec5 (diff)
skip unnecessary loading of conversation overview fragment
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationActivity.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationActivity.java b/src/main/java/de/pixart/messenger/ui/ConversationActivity.java
index fe38445ea..033cd0efd 100644
--- a/src/main/java/de/pixart/messenger/ui/ConversationActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ConversationActivity.java
@@ -106,17 +106,21 @@ public class ConversationActivity extends XmppActivity implements OnConversation
if (performRedirectIfNecessary(true)) {
return;
}
- for (@IdRes int id : FRAGMENT_ID_NOTIFICATION_ORDER) {
- notifyFragmentOfBackendConnected(id);
- }
- invalidateActionBarTitle();
xmppConnectionService.getNotificationService().setIsInForeground(true);
Intent intent = pendingViewIntent.pop();
if (intent != null) {
if (processViewIntent(intent)) {
+ if (binding.secondaryFragment != null) {
+ notifyFragmentOfBackendConnected(R.id.main_fragment);
+ }
+ invalidateActionBarTitle();
return;
}
}
+ for (@IdRes int id : FRAGMENT_ID_NOTIFICATION_ORDER) {
+ notifyFragmentOfBackendConnected(id);
+ }
+ invalidateActionBarTitle();
if (binding.secondaryFragment != null && ConversationFragment.getConversation(this) == null) {
Conversation conversation = ConversationsOverviewFragment.getSuggestion(this);
if (conversation != null) {