Created
September 30, 2018 08:54
-
-
Save NezSpencer/3910558fa23ea08c1842665a9a2e6a02 to your computer and use it in GitHub Desktop.
illegal state exception prevention
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onSuccess(){ | |
if(lifecycle.currentState.isAtLeast(Lifecycle.State.STARTED)) { | |
//safe to perform fragment transaction | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment