Commit c872d0fe authored by Dirk Steinkopf's avatar Dirk Steinkopf

bugfix: pin entry was green and focused when location was not available

parent f6c4fd95
......@@ -389,6 +389,8 @@ class _TueraufHomePageState extends State<TueraufHomePage> with WidgetsBindingOb
debugPrint("not accurate: accuracy=$accuracy - ignored");
setState(() {
_gotGeolocation = false;
_isNear = false;
_isFar = false;
});
return;
}
......@@ -421,11 +423,11 @@ class _TueraufHomePageState extends State<TueraufHomePage> with WidgetsBindingOb
_isFar = isFar;
_updateResultLabelText(info != null && info.length > 4 ? info : "");
});
if (!_pendingOpenNow) {
_setFocus(true);
}
if (_isNear) {
if (!_pendingOpenNow) {
_setFocus(true);
}
_geoy = geox;
_geox = geoy;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment