Просмотр исходного кода

1.分享文件数量限制改为50个

huangxiaodong месяцев назад: 8
Родитель
Сommit
f4b9d61ad5

+ 1 - 1
创维盒子/双子星云手机/Class/Set/previewFile/previewAudioOrDocumentViewController.m

@@ -572,7 +572,7 @@
 #pragma mark 用户点击分享
 - (void)gotoShareViewFun
 {
-    if (_didSelectListArr.count > 20) {
+    if (_didSelectListArr.count > 50) {
         [[iToast makeText:NSLocalizedString(@"share_max_count_tip1",nil)] show];
         return;
     }

+ 5 - 11
创维盒子/双子星云手机/Class/Set/previewFile/previewFileAndFolderSecondViewController.m

@@ -489,19 +489,13 @@
         }
     }
     
-    NSInteger MaxShareNuber = 5;
-    if(isSameFileType && [firstFileType containsString:@"video"]){
-        MaxShareNuber = 20;
-    }
+    NSInteger MaxShareNuber = 50;
+//    if(isSameFileType && [firstFileType containsString:@"video"]){
+//        MaxShareNuber = 20;
+//    }
     
     if (_didSelectListArr.count > MaxShareNuber) {
-        if(MaxShareNuber==20)
-        {
-            [[iToast makeText:NSLocalizedString(@"share_max_count_tip1",nil)] show];
-        }
-        else{
-            [[iToast makeText:NSLocalizedString(@"share_max_count_tip2",nil)] show];
-        }
+        [[iToast makeText:NSLocalizedString(@"share_max_count_tip1",nil)] show];
         return;
     }
     

+ 5 - 12
创维盒子/双子星云手机/Class/Set/previewFile/previewFileAndFolderViewController.m

@@ -616,20 +616,13 @@
         }
     }
     
-    NSInteger MaxShareNuber = 5;
-    if(isSameFileType && [firstFileType containsString:@"video"]){
-        MaxShareNuber = 20;
-    }
+    NSInteger MaxShareNuber = 50;
+//    if(isSameFileType && [firstFileType containsString:@"video"]){
+//        MaxShareNuber = 20;
+//    }
     
     if (_didSelectListArr.count > MaxShareNuber) {
-        if(MaxShareNuber==20)
-        {
-            [[iToast makeText:NSLocalizedString(@"share_max_count_tip1",nil)] show];
-        }
-        else{
-            [[iToast makeText:NSLocalizedString(@"share_max_count_tip2",nil)] show];
-        }
-        
+        [[iToast makeText:NSLocalizedString(@"share_max_count_tip1",nil)] show];
         return;
     }
     

+ 3 - 11
创维盒子/双子星云手机/Class/Set/previewFile/previewImageOrVideoViewController.m

@@ -682,17 +682,9 @@
 #pragma mark 用户点击分享
 - (void)gotoShareViewFun
 {
-    if(_isPhotoType){
-        if (_didSelectListArr.count > 20) {
-            [[iToast makeText:NSLocalizedString(@"share_max_count_tip1",nil)] show];
-            return;
-        }
-    }
-    else{
-        if (_didSelectListArr.count > 5) {
-            [[iToast makeText:NSLocalizedString(@"share_max_count_tip2",nil)] show];
-            return;
-        }
+    if (_didSelectListArr.count > 50) {
+        [[iToast makeText:NSLocalizedString(@"share_max_count_tip1",nil)] show];
+        return;
     }
     
     editShareView *editShareV = [[editShareView alloc] init];

+ 2 - 2
创维盒子/双子星云手机/en.lproj/Localizable.strings

@@ -517,8 +517,8 @@
 "box_receive_Record_suc"   = "Saved successfully";
 "box_receive_Record_fail"   = "Save failed";
 "box_receive_file_ing"   = "waiting Save resources...";
-"share_max_count_tip1"   = "The maximum number of shared files is 20.";
-"share_max_count_tip2"   = "The maximum number of shared files is 5.";
+"share_max_count_tip1"   = "The maximum number of shared files is 50.";
+//"share_max_count_tip2"   = "The maximum number of shared files is 50.";
 "box_receive_delete_msg"   = "Confirm to delete record only, not file,Do you want to delete the selected file records?";
 "netWork_title" = "network";
 "get_sn_msg_201_title" = "Device information does not exist";

+ 2 - 2
创维盒子/双子星云手机/zh-Hans.lproj/Localizable.strings

@@ -513,8 +513,8 @@
 "box_receive_Record_suc"   = "保存成功";
 "box_receive_Record_fail"   = "保存失败";
 "box_receive_file_ing"   = "等待保存中…";
-"share_max_count_tip1"   = "分享文件最大不能超过20张";
-"share_max_count_tip2"   = "分享文件最大不能超过5张";
+"share_max_count_tip1"   = "分享文件最大不能超过50张";
+//"share_max_count_tip2"   = "分享文件最大不能超过50张";
 "box_receive_delete_msg"   = "确认后仅删除记录不会删除文件,\n是否删除所选的文件记录?";
 "netWork_title" = "网络";
 "get_sn_msg_201_title" = "设备信息不存在";

+ 2 - 2
创维盒子/双子星云手机/zh-Hant.lproj/Localizable.strings

@@ -519,8 +519,8 @@
 "box_receive_Record_suc"   = "保存成功";
 "box_receive_Record_fail"   = "保存失敗";
 "box_receive_file_ing"   = "等待保存中…";
-"share_max_count_tip1"   = "分享文件最大不能超過20張";
-"share_max_count_tip2"   = "分享文件最大不能超過5張";
+"share_max_count_tip1"   = "分享文件最大不能超過50張";
+//"share_max_count_tip2"   = "分享文件最大不能超過50張";
 "box_receive_delete_msg"   = "確認後僅刪除記錄不會刪除文件";
 "netWork_title" = "網路";
 "get_sn_msg_201_title" = "設備資訊不存在";