|
|
@@ -86,7 +86,14 @@
|
|
|
|
|
|
[self drawAnyView];
|
|
|
|
|
|
- [self beginShowAlertFun];
|
|
|
+ CGFloat second = 0.1;
|
|
|
+ BOOL haveOpenMask = [HWDataManager getBoolWithKey:Const_cloudPhone_Model_Open];
|
|
|
+ if(haveOpenMask){
|
|
|
+ second = 5;
|
|
|
+ }
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(second * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
+ [self beginShowAlertFun];
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
- (void)drawAnyView{
|
|
|
@@ -1005,20 +1012,33 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- RenewTipView = [[imageVersionRenewTipView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, SCREEN_H)];
|
|
|
- [ksharedAppDelegate.window addSubview:RenewTipView];
|
|
|
- RenewTipView.status = _otaUpgradeInfoModel.data.status;
|
|
|
+ BOOL haveOpenMask = [HWDataManager getBoolWithKey:Const_cloudPhone_Model_Open];
|
|
|
+ CGFloat second = 0.1;
|
|
|
|
|
|
- //[self.view bringSubviewToFront:RenewTipView];
|
|
|
+ if(haveOpenMask){
|
|
|
+ second = 1.5;
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:needToPoPCloudPhoneVCNotification object:nil];
|
|
|
+ }
|
|
|
|
|
|
KWeakSelf
|
|
|
- RenewTipView.didClickUpdateNowFun = ^{
|
|
|
- [weakSelf otaUpdateNowFun];
|
|
|
- };
|
|
|
|
|
|
- RenewTipView.didClickCloseFun = ^{
|
|
|
- [weakSelf didClickRenewTipViewCloseFun];
|
|
|
- };
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(second * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
+ self->RenewTipView = [[imageVersionRenewTipView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, SCREEN_H)];
|
|
|
+ [ksharedAppDelegate.window addSubview:self->RenewTipView];
|
|
|
+ self->RenewTipView.status = self->_otaUpgradeInfoModel.data.status;
|
|
|
+ //[self.view bringSubviewToFront:RenewTipView];
|
|
|
+
|
|
|
+
|
|
|
+ self->RenewTipView.didClickUpdateNowFun = ^{
|
|
|
+ [weakSelf otaUpdateNowFun];
|
|
|
+ };
|
|
|
+
|
|
|
+ self->RenewTipView.didClickCloseFun = ^{
|
|
|
+ [weakSelf didClickRenewTipViewCloseFun];
|
|
|
+ };
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
- (void)didClickRenewTipViewCloseFun{
|