Merge branch 'feature/legacy_top_alert_time' into 'develop'

Feature/legacy top alert time

See merge request BPHV_MIPS/mvm_core!97
This commit is contained in:
Hedden, Kyle Matthew 2020-08-12 08:57:05 -04:00
commit a0e3316c83
3 changed files with 10 additions and 9 deletions

View File

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

View File

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

View File

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