[iOS] fix mobile internet permission

This commit is contained in:
Aleksey Belouosv 2019-12-12 16:50:00 +03:00 committed by Arsentiy Milchakov
parent 4b1ce29dc0
commit 2842b6147f

View file

@ -12,12 +12,15 @@
[alertController presentMobileInternetAlertWithBlock:^(MWMMobileInternetAlertResult result) {
switch (result) {
case MWMMobileInternetAlertResultAlways:
self.permission = MWMNetworkPolicyPermissionAlways;
completion(YES);
break;
case MWMMobileInternetAlertResultToday:
self.permission = MWMNetworkPolicyPermissionToday;
completion(YES);
break;
case MWMMobileInternetAlertResultNotToday:
self.permission = MWMNetworkPolicyPermissionNotToday;
completion(NO);
break;
}