openMF / android-client

An android client for the MifosX platform
https://openmf.github.io/mobileapps.github.io/
Mozilla Public License 2.0
200 stars 587 forks source link

adding toast message showing press back again to exit #616

Open pranavgupta1234 opened 7 years ago

pranavgupta1234 commented 7 years ago

Summary:

Adding Toast message to click back again to exit

Steps to reproduce:

Click the physical back button(it directly closes the application)

Expected behavior:

Toast message saying that press back again to exit is shown and if within a certain time interval back is pressed again then close the application.

Observed behavior:

Application is closed directly

Device and Android version:

Infocus m810 Android Lollipop 5.0.2 API Level 21

Screenshots:

screenshot_2017-03-20-16-57-23

pranavgupta1234 commented 7 years ago

I would like to work on this issue

rohitsroch commented 7 years ago

I would like to work on this issue

meghalagrawal commented 7 years ago

Instead of Toast message can we add a Dialog asking user Are you sure to exit ??

pranavgupta1234 commented 7 years ago

In most of apps I had seen toast message @meghalagrawal , I think it would be better as it will not break the app flow and in case of pressing back button mistakenly user will be bothered to close the dialog which could be quite annoying