ImaginativeShohag / Why-Not-Compose

A collection of animations, compositions, UIs using Jetpack Compose. You can say Jetpack Compose cookbook or play-ground if you want!

Home Page:https://play.google.com/store/apps/details?id=org.imaginativeworld.whynotcompose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't exit application

quentin23soleil opened this issue · comments

I'm using a pixel with gesture navigation and I can't seem to exit. App always shows the toast to press back again.

A quick double-back gesture should close the app. I delayed 500 milliseconds here. You can try increasing the delay and try in your device. I tried in my POCO with the back gesture. It working fine so far.

oh, 500ms is short, but yes, it works.

(also, it's considered a bad practice to have that kind of behaviour)