diff options
| author | campbeb <bpcampbell@gmail.com> | 2012-05-06 09:34:22 +0900 |
|---|---|---|
| committer | campbeb <bpcampbell@gmail.com> | 2012-05-06 09:34:22 +0900 |
| commit | 665e8007493884f036f6f1715403e767448f6bf2 (patch) | |
| tree | 884539349e085dc4ac43fd68d45014bd4bcbef9e /main | |
| parent | 08fcbb42d1fd4ca3b6e2fb608007feec9aa4e23d (diff) | |
| download | cgeo-665e8007493884f036f6f1715403e767448f6bf2.zip cgeo-665e8007493884f036f6f1715403e767448f6bf2.tar.gz cgeo-665e8007493884f036f6f1715403e767448f6bf2.tar.bz2 | |
Don't reset distance in popups to "--" when updating U/I elements
Diffstat (limited to 'main')
| -rw-r--r-- | main/src/cgeo/geocaching/AbstractPopupActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/AbstractPopupActivity.java b/main/src/cgeo/geocaching/AbstractPopupActivity.java index c85b13b..4f163b6 100644 --- a/main/src/cgeo/geocaching/AbstractPopupActivity.java +++ b/main/src/cgeo/geocaching/AbstractPopupActivity.java @@ -276,7 +276,9 @@ public abstract class AbstractPopupActivity extends AbstractActivity { details.addCacheState(cache); // distance - details.add(R.string.cache_distance, "--"); + // if there is already a distance in cacheDistance, use it instead of resetting to default. + // this prevents displaying "--" while waiting for a new position update (See bug #1468) + details.add(R.string.cache_distance, cacheDistance != null ? cacheDistance.getText().toString() : "--"); cacheDistance = details.getValueView(); details.addDifficulty(cache); |
