Created
December 12, 2017 14:46
-
-
Save digitalbuddha/973cfe4edd5052e76cfc9572b36b201b to your computer and use it in GitHub Desktop.
This file contains 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
fun Dispatcher.goBack() { | |
popLastShowingState()//current state is what we are currently showing | |
dispatchShow(popLastShowingState()) | |
} | |
fun popLastShowingState(): State { | |
if(!showEvents.empty()) Timber.d("popping "+showEvents.peek()) | |
return if (showEvents.isEmpty()) State.BackStackEmpty else showEvents.pop() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment