barbeau / gpstest

The #1 open-source Android GNSS/GPS test program
Apache License 2.0
1.78k stars 364 forks source link

Wear OS - User interface populates with default information prior to GNSS fix #609

Closed barbeau closed 1 year ago

barbeau commented 1 year ago

Describe the bug When the Wear OS app is first started, the user interface populates with default (i.e., not real) GNSS information.

Here's an example picture:

gpstest_wear_default_ui

For example:

These fields should all be blank before real information is reported from the Android APIs - in other words, they should be initialized to empty values.

Here are some examples for how this is handled with Compose in the mobile app Status screen:

The one exception is "# Sats" - we can keep this as 0/0/0 until it populates with real data.

@adaext Is this something you could tackle?

To Reproduce Steps to reproduce the behavior:

  1. Start Wear OS app and wait for a GNSS fix

Expected behavior Fields with data should be initialized to empty values

Observed behavior Fields are populated to default values

App, Device and Android version:

Main branch as of https://github.com/barbeau/gpstest/commit/7f56a0e8490a0de77c9cce5b67936461aea2b079