Merge branch 'develop' of gitlab.verizon.com:BPHV_MIPS/mvm_core into develop

This commit is contained in:
Kevin G Christiano 2020-08-12 14:11:50 -04:00
commit 588b80bc06
3 changed files with 10 additions and 9 deletions

View File

@ -449,8 +449,10 @@ NSString * const KeyActionTypeOpen = @"openPage";
if (!error.silentError) { if (!error.silentError) {
// Show alert // Show alert
[MVMCoreDispatchUtility performBlockOnMainThread:^{
MVMCoreAlertObject *alertObject = [[MVMCoreAlertObject alloc] initPopupAlertWithError:error isGreedy:NO]; MVMCoreAlertObject *alertObject = [[MVMCoreAlertObject alloc] initPopupAlertWithError:error isGreedy:NO];
[[MVMCoreAlertHandler sharedAlertHandler] showAlertWithAlertObject:alertObject]; [[MVMCoreAlertHandler sharedAlertHandler] showAlertWithAlertObject:alertObject];
}];
} }
} }

View File

@ -50,13 +50,11 @@ NSUInteger const TopAlertDismissTime = 5;
self.useNewStyle = [responseInfo boolForKey:@"newTopAlertStyle"]; self.useNewStyle = [responseInfo boolForKey:@"newTopAlertStyle"];
// Server driven dismiss time. // Server driven dismiss time.
if (self.useNewStyle) {
NSNumber *topAlertTime = [responseInfo optionalNumberForKey:@"topAlertTime"]; NSNumber *topAlertTime = [responseInfo optionalNumberForKey:@"topAlertTime"];
if (topAlertTime != nil) { if (topAlertTime != nil) {
self.topAlertDismissTime = [topAlertTime integerValue]; self.topAlertDismissTime = [topAlertTime integerValue];
} }
} }
}
return self; return self;
} }

View File

@ -57,8 +57,9 @@
self.domain = domain; self.domain = domain;
self.location = location; self.location = location;
self.date = [NSDate date]; self.date = [NSDate date];
[MVMCoreDispatchUtility performSyncBlockOnMainThread:^{
self.applicationState = [UIApplication sharedApplication].applicationState; self.applicationState = [UIApplication sharedApplication].applicationState;
}];
// We don't log server errors. // We don't log server errors.
if (![domain isEqualToString:ErrorDomainServer]) { if (![domain isEqualToString:ErrorDomainServer]) {
self.logError = YES; self.logError = YES;