redfish64 / TinyTravelTracker

Private Android GPS tracker
GNU General Public License v3.0
136 stars 31 forks source link

Bug: Cant go back to Main Screen sometimes #3

Closed vanitasvitae closed 7 years ago

vanitasvitae commented 9 years ago

Hi Sometimes when I open the app from the notification I end up in the settingsActivity. From there I cant go to the main screen, neither the back soft key works, nor the menu entry "back to main screen". Both just close the app.

A workaround is to open the app from the launcher.

vanitasvitae commented 9 years ago

Also I have the feeling, the app asks for the password way too often. Maybe you could add an optional timeout?

C0R10L4NU2 commented 9 years ago

I can confirm the "Cant go back to Main Screen" part

redfish64 commented 9 years ago

I added a password timeout. However, Tiny Travel Tracker won't write the password to disk (by design), so if the app is killed by the Android OS while in the background, which happens if Android runs out of memory, then you still will have to add your password.

I also updated the code to go to the main screen.

The fix will be in v1.0.13.

redfish64 commented 9 years ago

You can follow the merge request here:

https://gitlab.com/fdroid/fdroiddata/merge_requests/1017

Unfortunately, it seems there are some problems getting it pushed through.

dreaming-augustin commented 9 years ago

The bug still exists with v1.0.14. Here is how to reproduce:

Start the app (open it from the normal application launcher). Once in the main screen, notice the three hardware buttons:

From the main window (map view), when GPS data gathering is enabled: -> press home (minimizes the application which is no longer in view) > open notification drawer > press on the app status > app settings page > press 'return' gets you back to the main window, which is what is expected. But: -> press return (somehow quits the application window) > open notification drawer > press on the app status > app settings page > press 'return' does NOT get you back to the main window but to the smartphone home screen, which is the bug that the OP reported.

A straight fix shouldn't be too complicated.

However, should one day this app be blessed with a group of active developers, I don't think that the settings page is the right place for this toggle. The binary logic ON/OFF with a single percentage setting for the "Time the GPS is on" is too simplistic. We should be able to set the application in one of different modes: