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:
commit
a0e3316c83
@ -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];
|
||||
}];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user