woheller69 / gpscockpit

Android GPS dashboard and head-up display
GNU Affero General Public License v3.0
195 stars 11 forks source link

[SOLVED] Transient Icon when GPS is Locked #20

Closed MarekPasnikowski closed 1 year ago

MarekPasnikowski commented 1 year ago

Hello.

I use the application to keep GPS locked in the background, and it does the job very well.

There is one minor annoyance that I recently uncovered, when I decided to have all the system icons enabled. The location pin constantly shows and hides, when the GPS is not in the foreground.

Am I right to think that the GPS lock is maintained by polling the device every couple of seconds? In which case the annoyance could worked around by polling more often.

woheller69 commented 1 year ago

No, there is no locking frequency

MarekPasnikowski commented 1 year ago

So is there no hope for an icon that just stays on?

woheller69 commented 1 year ago

Do you need a location update faster than every few seconds?

MarekPasnikowski commented 1 year ago

No - I am simply annoyed at the icon behaviour. My reasoning is that a "locked GPS" is an ongoing state, so why is the icon in a transient state?

I admit - the title is not accurate. But I was not able to come up with anything better quickly.

woheller69 commented 1 year ago

the icon is shown when an app requests a location update. The locationListener is locked nevertheless

MarekPasnikowski commented 1 year ago

Sounds to me like a bug in the icon design.

I am just a user of Android. Is the "locationListener" involved in every interaction with GPS? If yes, then in my opinion the icon state should represent the state of the "locationListener", not whatever any program wants in a moment.

With that said, I am letting go of this. I decided to disable the icon. I don't think I have any power as a single user to change the upstream's design.

EDIT: Actually, on my work phone with a newer Android version, the icon does indeed stay on as I imagined. I use that phone very infrequently, so I noticed only now, when I wanted to disable the icon - the toggle does not exist, and the icon is in another design space.

I apologise for having wasted your time. The upstream had solved it without my knowing. Thank you for your patient responses.

woheller69 commented 1 year ago

https://android.stackexchange.com/questions/43101/gps-and-icons-on-the-android-notification-bar#43104