FragmentTransaction in the support library now provides four different ways to commit a transaction: commit()commitAllowingStateLoss()commitNow()commitNowAllowingStateLoss()You have probably also encountered one of these alongside a call to executePendingTransactions(). What do each of these do, and which one should you be using? Let’s explore each one in more depth and find out! commit() vs commi
![The many flavors of commit()](https://cdn-ak-scissors.b.st-hatena.com/image/square/e7cc5cff5f0b4808e9771a26cba533415914d5fc/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A785%2F1%2AkZRkrsnOICEU6jSoN02qtQ.png)