Checking if state is saved before committing a FragmentTransaction
Starting from support library version 26.0.0 Beta 1 a new API is available in FragmentManager and Fragment classes: FragmentManager and Fragment have an isStateSaved() method to allow querying whether or not a transaction will be allowed without state loss. This is especially useful to check when handling an onClick() event before executing any transaction. From … Read more