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:
Eric House 2016-07-13 16:42:58 -07:00
parent 7b2392842e
commit 1be2d514f0

View file

@ -371,6 +371,10 @@ public class MainActivity extends XWActivity
.add( id, fragment ) .add( id, fragment )
.addToBackStack( newName ) .addToBackStack( newName )
.commit(); .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();
} }
} }