catch rare exception around execute pending fragment transactions
This commit is contained in:
parent
b01bca74fd
commit
ba9596b37d
|
@ -430,7 +430,7 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
|
|||
|
||||
private void openConversation(Conversation conversation, Bundle extras) {
|
||||
final FragmentManager fragmentManager = getSupportFragmentManager();
|
||||
fragmentManager.executePendingTransactions();
|
||||
executePendingTransactions(fragmentManager);
|
||||
ConversationFragment conversationFragment = (ConversationFragment) fragmentManager.findFragmentById(R.id.secondary_fragment);
|
||||
final boolean mainNeedsRefresh;
|
||||
if (conversationFragment == null) {
|
||||
|
@ -462,6 +462,14 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
|
|||
}
|
||||
}
|
||||
|
||||
private static void executePendingTransactions(final FragmentManager fragmentManager) {
|
||||
try {
|
||||
fragmentManager.executePendingTransactions();
|
||||
} catch (final Exception e) {
|
||||
Log.e(Config.LOGTAG,"unable to execute pending fragment transactions");
|
||||
}
|
||||
}
|
||||
|
||||
public boolean onXmppUriClicked(Uri uri) {
|
||||
XmppUri xmppUri = new XmppUri(uri);
|
||||
if (xmppUri.isValidJid() && !xmppUri.hasFingerprints()) {
|
||||
|
|
Loading…
Reference in a new issue