Closed jamonholmgren closed 9 years ago
I also fixed a bug with the PMNavigationActivity where hitting the device back button would show an empty activity once you had popped all the fragments off the stack.
Also added another hook:
def on_back_selected(item)
super # will close the current screen
# or do custom logic here, like a confirm dialog
SomeAlert.confirm "Are you sure?" do |yesno|
super if yesno == "yes"
end
end
I wonder if we should change the hook to on_back_pressed
and capture the OS back button too.
should I merge this?
Should be good to go!
You can now do this:
When you open/close a screen, it'll automatically show or hide the action bar and the back button. Defaults to true/true.
@twerth