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:
Pfeil, Scott Robert 2018-06-26 12:32:16 -04:00
commit fa0c68ac68

View File

@ -232,12 +232,7 @@ NSString * const KeyActionTypeOpen = @"openPage";
NSString *type = [actionInformation string:KeyPageType];
if ([@"location" isEqualToString:type] || [@"push" isEqualToString:type]) {
[MVMCoreActionUtility linkAway:UIApplicationOpenSettingsURLString appURLString:nil];
} else if ([@"airplaneMode" isEqualToString:type]) {
// Stopped working in iOS 10.
[MVMCoreActionUtility linkAway:@"prefs:root=AIRPLANE_MODE" appURLString:nil];
} else {
} else {
// 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]];
[self handleActionError:error actionInformation:actionInformation additionalData:additionalData delegate:delegate];