android - Checking State before calling activity.getSupportFragmentManager().popBackStackImmediate()? -


sometimes calling

    activity.getsupportfragmentmanager().popbackstackimmediate()  

results in error in particular:

 fatal exception: java.lang.illegalstateexception: can not perform   action after onsaveinstancestate 

what check prevent error occurring? enough check

 !activity.isfinishing()    

or should 1 check activity not stopped?


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

java - How to implement an entity bound odata action in olingo v4.3 -