thunderbiscuit / padawan-wallet

The bitcoin wallet trainer on Android.
https://padawanwallet.com/
Apache License 2.0
116 stars 51 forks source link

Stop app from closing when user uses back button. #164

Closed fivetran-tangyetong closed 1 year ago

fivetran-tangyetong commented 2 years ago

When the user uses the phone's back button the app closes. Is there a way to using fragments backstack, or another way to handle the onBackPressed logic.

thunderbiscuit commented 2 years ago

Isn't this standard behaviour? Trying a few other apps and they all do it. Unless I misunderstand your question?

fivetran-tangyetong commented 2 years ago

Sorry for not clarifying, since I thought that pressing the back button in certain fragments like the tutorials will lead back to tutorialsHome, or home page etc., instead of closing the app straight away.

If it is not a problem I can close this issue!

thunderbiscuit commented 2 years ago

Ah yes ok I see what you mean!

Yes I do think there should be a way to customize that behaviour. I'm not actually sure how off the top of my head, but we should definitely keep this issue open. If you're interested in it feel free to look into it! No pressure. Otherwise we can also just keep it open to have it in mind for later.