[android] fix: Excessive locator error dialogs.

This commit is contained in:
Alexander Marchuk 2016-05-19 17:59:40 +03:00
parent c347f7ae85
commit e6e28469e8

View file

@ -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)