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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -