mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
Don't call executePendingTransactions().
Not doing so no longer crashes on when handling notifications, and is causing runtime exceptions from the OS when board opening chat causes it to be called recursively.
This commit is contained in:
parent
7b2392842e
commit
1be2d514f0
1 changed files with 5 additions and 1 deletions
|
@ -371,6 +371,10 @@ public class MainActivity extends XWActivity
|
|||
.add( id, fragment )
|
||||
.addToBackStack( newName )
|
||||
.commit();
|
||||
fm.executePendingTransactions();
|
||||
// Don't do this. It causes an exception if e.g. from fragment.start()
|
||||
// I wind up launching another fragment and calling into this code
|
||||
// again. If I need executePendingTransactions() I'm doing something
|
||||
// else wrong.
|
||||
// fm.executePendingTransactions();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue