[ios][guides on map] toast is disabled when welcome screen is active

This commit is contained in:
Arsentiy Milchakov 2020-09-28 20:25:10 +03:00 committed by mpimenov
parent 2ab81249f9
commit afbda89c8c

View file

@ -133,9 +133,11 @@ NSArray<UIImage *> *imagesWithName(NSString *name) {
case MWMMapOverlayGuidesStateEnabled:
break;
case MWMMapOverlayGuidesStateHasData:
performOnce(^{
[[MWMToast toastWithText:L(@"routes_layer_is_on_toast")] showWithAlignment:MWMToastAlignmentTop];
}, @"routes_layer_is_on_toast");
if (![MapViewController sharedController].welcomePageController) {
performOnce(^{
[[MWMToast toastWithText:L(@"routes_layer_is_on_toast")] showWithAlignment:MWMToastAlignmentTop];
}, @"routes_layer_is_on_toast");
}
break;
case MWMMapOverlayGuidesStateNetworkError:
[[MWMToast toastWithText:L(@"connection_error_toast_guides")] show];