forked from organicmaps/organicmaps-tmp
[android] fix: Excessive locator error dialogs.
This commit is contained in:
parent
c347f7ae85
commit
e6e28469e8
1 changed files with 3 additions and 1 deletions
|
@ -879,8 +879,10 @@ public class MwmActivity extends BaseMwmFragmentActivity
|
|||
break;
|
||||
}
|
||||
|
||||
if (LocationHelper.INSTANCE.shouldResolveErrors() || LocationUtils.areLocationServicesTurnedOn())
|
||||
if (LocationHelper.INSTANCE.shouldResolveErrors() && LocationUtils.areLocationServicesTurnedOn())
|
||||
{
|
||||
LocationHelper.INSTANCE.setShouldResolveErrors(false);
|
||||
|
||||
String message = String.format("%s\n\n%s", getString(R.string.current_location_unknown_message),
|
||||
getString(R.string.current_location_unknown_title));
|
||||
new AlertDialog.Builder(this)
|
||||
|
|
Loading…
Add table
Reference in a new issue