Merge pull request #20 in BPHVB/mvm_core from bugfix/remove_prefs to release/6_4
* commit '87c037fb85988ce9997f155a80d068d91e942d09': remove prefs
This commit is contained in:
commit
fa0c68ac68
@ -232,12 +232,7 @@ NSString * const KeyActionTypeOpen = @"openPage";
|
|||||||
NSString *type = [actionInformation string:KeyPageType];
|
NSString *type = [actionInformation string:KeyPageType];
|
||||||
if ([@"location" isEqualToString:type] || [@"push" isEqualToString:type]) {
|
if ([@"location" isEqualToString:type] || [@"push" isEqualToString:type]) {
|
||||||
[MVMCoreActionUtility linkAway:UIApplicationOpenSettingsURLString appURLString:nil];
|
[MVMCoreActionUtility linkAway:UIApplicationOpenSettingsURLString appURLString:nil];
|
||||||
} else if ([@"airplaneMode" isEqualToString:type]) {
|
} else {
|
||||||
|
|
||||||
// Stopped working in iOS 10.
|
|
||||||
[MVMCoreActionUtility linkAway:@"prefs:root=AIRPLANE_MODE" appURLString:nil];
|
|
||||||
} else {
|
|
||||||
|
|
||||||
// No known settings type
|
// No known settings type
|
||||||
MVMCoreErrorObject *error = [[MVMCoreErrorObject alloc] initWithTitle:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorTitle] message:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess] code:ErrorCodeInvalidSettingType domain:ErrorDomainNative location:[NSString stringWithFormat:@"%@_%@",NSStringFromClass([delegate class]),KeyActionTypeSettings]];
|
MVMCoreErrorObject *error = [[MVMCoreErrorObject alloc] initWithTitle:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorTitle] message:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess] code:ErrorCodeInvalidSettingType domain:ErrorDomainNative location:[NSString stringWithFormat:@"%@_%@",NSStringFromClass([delegate class]),KeyActionTypeSettings]];
|
||||||
[self handleActionError:error actionInformation:actionInformation additionalData:additionalData delegate:delegate];
|
[self handleActionError:error actionInformation:actionInformation additionalData:additionalData delegate:delegate];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user