diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-07-09 21:20:40 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-07-09 21:20:40 +0200 |
commit | 906271bd4d873f9b2fff2b6688a9253fe3fcaa1b (patch) | |
tree | c976301d83f4688cdd70a4598b5cd48cd6aa8b11 | |
parent | f28d23606d8b26363f163885377259baadc0310d (diff) |
catch rare state loss exception when hitting home button to pop back stack
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationsActivity.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationsActivity.java b/src/main/java/de/pixart/messenger/ui/ConversationsActivity.java index 5700e659a..91170567d 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationsActivity.java @@ -546,7 +546,11 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio case android.R.id.home: FragmentManager fm = getFragmentManager(); if (fm.getBackStackEntryCount() > 0) { - fm.popBackStack(); + try { + fm.popBackStack(); + } catch (IllegalArgumentException e) { + Log.w(Config.LOGTAG, "Unable to pop back stack after pressing home button"); + } return true; } break; |