square/flow

java.lang.IllegalArgumentException: History may not be empty

Closed this issue · 4 comments

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.

@GrahamRogers this is the same as #195

This is because you shouldn't call super.onBackPressed during a transition

rjrjr commented

Closing as a dup of #195

rjrjr commented

See also #197