java.lang.IllegalArgumentException: History may not be empty
Closed this issue · 4 comments
Deleted user commented
This exception occurs when Flow.goBack()
is called during a transition and History.size() == 1
.
The code in Flow.goBack()
should just return true
if a transition is in progress otherwise the builder.pop
call removes the last key and setHistory
crashes with an IllegalArgumentException
.
osama-lionheart commented
@GrahamRogers this is the same as #195
Zhuinden commented
This is because you shouldn't call super.onBackPressed during a transition