Przeglądaj źródła

1.设置页面 隐藏备份设置等 去掉流量备份判断

huangxiaodong 1 rok temu
rodzic
commit
357e629c15

+ 10 - 2
创维盒子/双子星云手机/Class/Set/view/mySetHeadView.m

@@ -159,7 +159,7 @@
     rightLabel.textColor = [UIColor hwColor:@"#959799" alpha:1.0];
     rightLabel.textAlignment = NSTextAlignmentRight;
     [fileUploadBgView addSubview:rightLabel];
-
+    
     [rightLabel mas_makeConstraints:^(MASConstraintMaker *make) {
         make.right.mas_equalTo(arrowImageView.mas_left).offset(-2);
         make.top.mas_equalTo(10);
@@ -172,7 +172,7 @@
     recordBut.tag = 1;
     [recordBut addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
     [fileUploadBgView addSubview:recordBut];
-
+    
     [recordBut mas_makeConstraints:^(MASConstraintMaker *make) {
         make.right.mas_equalTo(0);
         make.top.mas_equalTo(0);
@@ -180,6 +180,10 @@
         make.height.mas_equalTo(40);
     }];
 
+    arrowImageView.hidden = YES;
+    rightLabel.hidden = YES;
+    recordBut.hidden = YES;
+    
     //图片上传
     NSString* curImgUploadStr = [[NSString alloc] initWithFormat:@"%@ %@",@"  ",NSLocalizedString(@"my_set_no_image_upload",nil)];
     UIButton *imageUploadBut = [[UIButton alloc] init];
@@ -289,6 +293,10 @@
         make.height.mas_equalTo(40);
     }];
     
+    arrowImageView2.hidden = YES;
+    BackupsRightLabel.hidden = YES;
+    BackupsSetBut.hidden = YES;
+    
     UIButton *BackupsEyeBut = [[UIButton alloc] init];
     //BackupsEyeBut.backgroundColor = [UIColor greenColor];
     [BackupsEyeBut setImage:[UIImage imageNamed:@"common_eye_open"] forState:UIControlStateNormal];

+ 11 - 11
创维盒子/双子星云手机/CloudPlayer/PlayerViewController+backupsFile.m

@@ -271,17 +271,17 @@
 #pragma mark 处理上传过程
 - (void)handleBackupsingFun:(NSNumber*)fileLengthNum
 {
-    BOOL isCanUseCellular = [HWDataManager getBoolWithKey:Const_file_backups_canUse_Cellular];
-    
-    if(!isCanUseCellular){//不允许流量备份
-        //
-        if([AFNetworkReachabilityManager sharedManager].networkReachabilityStatus == AFNetworkReachabilityStatusReachableViaWWAN){
-            self.curPhotosBackupsTaskMod.isBackupsSuspendType = backupsSuspendByOther;
-            self.curPhotosBackupsTaskMod.curBackupsState = backupsStateSuspend;
-            [[backupsFileManager shareInstance] changeBackupsFileStateWithSpeedFun];
-        }
-        
-    }
+//    BOOL isCanUseCellular = [HWDataManager getBoolWithKey:Const_file_backups_canUse_Cellular];
+//    
+//    if(!isCanUseCellular){//不允许流量备份
+//        //
+//        if([AFNetworkReachabilityManager sharedManager].networkReachabilityStatus == AFNetworkReachabilityStatusReachableViaWWAN){
+//            self.curPhotosBackupsTaskMod.isBackupsSuspendType = backupsSuspendByOther;
+//            self.curPhotosBackupsTaskMod.curBackupsState = backupsStateSuspend;
+//            [[backupsFileManager shareInstance] changeBackupsFileStateWithSpeedFun];
+//        }
+//        
+//    }
     
     
     if(self.curPhotosBackupsTaskMod.isBackupsSuspendType != backupsSuspendNone){

+ 9 - 9
创维盒子/双子星云手机/CloudPlayer/PlayerViewController+upLoadFile.m

@@ -295,15 +295,15 @@
 #pragma mark 处理上传过程
 - (void)handleUploadingFun:(NSNumber*)fileLengthNum
 {
-    BOOL isCanUseCellular = [HWDataManager getBoolWithKey:Const_file_Transfe_canUse_Cellular];
-    
-    if(!isCanUseCellular){//不允许流量备份
-        //
-        if([AFNetworkReachabilityManager sharedManager].networkReachabilityStatus == AFNetworkReachabilityStatusReachableViaWWAN){
-            self.isSuspendUploadType = YES;
-        }
-        
-    }
+//    BOOL isCanUseCellular = [HWDataManager getBoolWithKey:Const_file_Transfe_canUse_Cellular];
+//    
+//    if(!isCanUseCellular){//不允许流量备份
+//        //
+//        if([AFNetworkReachabilityManager sharedManager].networkReachabilityStatus == AFNetworkReachabilityStatusReachableViaWWAN){
+//            self.isSuspendUploadType = YES;
+//        }
+//        
+//    }
     
     if(self.isSuspendUploadType){
         //暂停

+ 1 - 1
创维盒子/双子星云手机/CloudPlayer/View/PlayerView.m

@@ -71,7 +71,7 @@ ShowImageViewDelegate>{
                   inRect:CGRectMake(0, 0, glkshowImageView.drawableWidth, glkshowImageView.drawableHeight)
                 fromRect:[ciImage extent]];
     
-    [self->glkshowImageView display];
+    //[self->glkshowImageView display];
 }
 
 - (void)showIMage