Merge pull request #3274 from trashkalmar/locator-fixes-master

[android] fix: Excessive locator error dialogs.
This commit is contained in:
Vladimir Byko-Ianko 2016-05-20 17:11:04 +03:00
commit 608b012c24

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)