Ash Jones
1 min readJan 17, 2020

--

Another fantastic article!

I implemented hiding the BottomNavigation for nested destinations and quitting the app on double tap back-press following these steps!

Just a quick question- What is the purpose of

Handler().postDelayed(2000) {
backPressedOnce = false
}

in the onBackPressed method?

And how would this be implemented in Java?

Thanks!

--

--

Ash Jones
Ash Jones

Written by Ash Jones

Philosopher. Writer. Writing about self-development, focus, eliminating distractions

Responses (1)