浏览代码

1.修改上传下载备份的第一次弹框

huangxiaodong 1 年之前
父节点
当前提交
87a3e4770a

+ 35 - 0
创维盒子/双子星云手机/Class/Set/uploadFile/downLoadFile/downLoadPreviewViewController.m

@@ -521,4 +521,39 @@
     [vc gotoDownloadFile:_downloadFileBottomV.indexPathsForSelectedItems];
     [vc gotoDownloadFile:_downloadFileBottomV.indexPathsForSelectedItems];
 }
 }
 
 
+- (void)viewDidAppear:(BOOL)animated{
+    [super viewDidAppear:animated];
+    [self showDownloadTipFun];
+}
+
+- (void)showDownloadTipFun
+{
+    BOOL didReadUploadTipType = [HWDataManager getBoolWithKey:Const_file_downLoad_need_read];
+   
+    if(didReadUploadTipType){
+        return;
+    }
+    
+    
+    //KWeakSelf
+    /*弹窗提示恢复出厂*/
+    ComontAlretViewController *nextVC = [[ComontAlretViewController alloc] initWithTiTle:nil
+                                                                                     msg:NSLocalizedString(@"upload_download_need_read_msg",nil)
+                                                                                imageStr:nil
+                                                                             cancelTitle:NSLocalizedString(@"guide_set_pwd_guide_know",nil)
+                                                                                 okTitle:nil
+                                                                        isOkBtnHighlight:NO
+                                                                              didClickOk:^{
+        
+    } didClickCancel:^{
+        [HWDataManager setBoolWithKey:Const_file_downLoad_need_read value:YES];
+    }];
+    
+    nextVC.modalPresentationStyle = UIModalPresentationCustom;
+    
+    [self presentViewController:nextVC animated:YES completion:^{
+        nextVC.view.superview.backgroundColor = [UIColor clearColor];
+    }];
+    
+}
 @end
 @end

+ 0 - 43
创维盒子/双子星云手机/Class/Set/uploadFile/uploadFileRecordViewController.m

@@ -422,7 +422,6 @@
     mainBlock(^{
     mainBlock(^{
         weakSelf.didGetUploadDataType = YES;
         weakSelf.didGetUploadDataType = YES;
         [weakSelf handleRemoveIndicator];
         [weakSelf handleRemoveIndicator];
-        [weakSelf showUploadOrDownReadTipFun:YES];
     });
     });
     
     
     [self realGotoUploadFile:indexPathsForSelectedItems];
     [self realGotoUploadFile:indexPathsForSelectedItems];
@@ -863,7 +862,6 @@
 -(void)gotoDownloadFile:(NSMutableArray*)selectedItems
 -(void)gotoDownloadFile:(NSMutableArray*)selectedItems
 {
 {
     KWeakSelf
     KWeakSelf
-    [weakSelf showUploadOrDownReadTipFun:NO];
     [[downloadManager shareInstance] handleCouldPhoneFileModelToDownloadFileDataFunBy:selectedItems complete:^(NSMutableArray * _Nonnull Arr) {
     [[downloadManager shareInstance] handleCouldPhoneFileModelToDownloadFileDataFunBy:selectedItems complete:^(NSMutableArray * _Nonnull Arr) {
         
         
         weakSelf.didGetDownloadDataType = YES;
         weakSelf.didGetDownloadDataType = YES;
@@ -1013,45 +1011,4 @@
 }
 }
 
 
 
 
-- (void)showUploadOrDownReadTipFun:(BOOL)isUploadType
-{
-    BOOL didReadUploadTipType = [HWDataManager getBoolWithKey:Const_file_upLoad_need_read];
-    BOOL didReadDownloadTipType = [HWDataManager getBoolWithKey:Const_file_downLoad_need_read];
-    
-    if(isUploadType && didReadUploadTipType){
-        return;
-    }
-    
-    if(!isUploadType  && didReadDownloadTipType){//阅读过
-        return;
-    }
-    
-    //KWeakSelf
-    /*弹窗提示恢复出厂*/
-    ComontAlretViewController *nextVC = [[ComontAlretViewController alloc] initWithTiTle:nil
-                                                                                     msg:NSLocalizedString(@"backups_need_read_msg",nil)
-                                                                                imageStr:nil
-                                                                             cancelTitle:NSLocalizedString(@"guide_set_pwd_guide_know",nil)
-                                                                                 okTitle:nil
-                                                                        isOkBtnHighlight:NO
-                                                                              didClickOk:^{
-        
-    } didClickCancel:^{
-        if(isUploadType){
-            [HWDataManager setBoolWithKey:Const_file_upLoad_need_read value:YES];
-        }
-        else{
-            [HWDataManager setBoolWithKey:Const_file_downLoad_need_read value:YES];
-        }
-    }];
-    
-    nextVC.modalPresentationStyle = UIModalPresentationCustom;
-    
-    [self presentViewController:nextVC animated:YES completion:^{
-        nextVC.view.superview.backgroundColor = [UIColor clearColor];
-    }];
-    
-}
-
-
 @end
 @end

+ 37 - 0
创维盒子/双子星云手机/Class/Set/uploadFile/uploadImageOrVideoViewController.m

@@ -686,4 +686,41 @@
         [weakSelf handelAfterGetBaseInfoModelData];
         [weakSelf handelAfterGetBaseInfoModelData];
     };
     };
 }
 }
+
+- (void)viewDidAppear:(BOOL)animated{
+    [super viewDidAppear:animated];
+    [self showUploadTipFun];
+}
+
+- (void)showUploadTipFun
+{
+    BOOL didReadUploadTipType = [HWDataManager getBoolWithKey:Const_file_upLoad_need_read];
+   
+    if(didReadUploadTipType){
+        return;
+    }
+    
+    
+    //KWeakSelf
+    /*弹窗提示恢复出厂*/
+    ComontAlretViewController *nextVC = [[ComontAlretViewController alloc] initWithTiTle:nil
+                                                                                     msg:NSLocalizedString(@"upload_download_need_read_msg",nil)
+                                                                                imageStr:nil
+                                                                             cancelTitle:NSLocalizedString(@"guide_set_pwd_guide_know",nil)
+                                                                                 okTitle:nil
+                                                                        isOkBtnHighlight:NO
+                                                                              didClickOk:^{
+        
+    } didClickCancel:^{
+        [HWDataManager setBoolWithKey:Const_file_upLoad_need_read value:YES];
+    }];
+    
+    nextVC.modalPresentationStyle = UIModalPresentationCustom;
+    
+    [self presentViewController:nextVC animated:YES completion:^{
+        nextVC.view.superview.backgroundColor = [UIColor clearColor];
+    }];
+    
+}
+
 @end
 @end

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

@@ -399,9 +399,9 @@
 "netWork_error_tip_content" = "iphone network abnormality, please check the current network permissions, or drag to the bottom of the settings to find Private-x and enter to view wireless data permissions";
 "netWork_error_tip_content" = "iphone network abnormality, please check the current network permissions, or drag to the bottom of the settings to find Private-x and enter to view wireless data permissions";
 "scan_sn_data_error_tip"   = "Device info not found. Scan to bind a new one.";
 "scan_sn_data_error_tip"   = "Device info not found. Scan to bind a new one.";
 "File_Transfer_By_Cellular_tip"   = "Data transmission will be paused in non-WIFI environments. Please enable data transmission in the settings page";
 "File_Transfer_By_Cellular_tip"   = "Data transmission will be paused in non-WIFI environments. Please enable data transmission in the settings page";
-"backups_need_read_msg" = "1. When uploading/downloading files, the system will request access to your photo library. To ensure a smooth experience, it is recommended to choose \"Allow Full Access\" to avoid frequent pop-up interruptions.
+"upload_download_need_read_msg" = "1. When uploading/downloading files, the system will request access to your photo library. To ensure a smooth experience, it is recommended to choose \"Allow Full Access\" to avoid frequent pop-up interruptions.
 2. Please keep the app running in the foreground during file transfer as exiting may cause interruptions.
 2. Please keep the app running in the foreground during file transfer as exiting may cause interruptions.
-3. Uploading/downloading files may impact the cloud phone operation experience; it is advisable to complete file transfers before engaging in cloud phone operations.
-4. When backing up files, the system will request access to your photo library. To ensure a smooth experience, it is recommended to choose \"Allow Full Access\" to avoid frequent pop-up interruptions. Permission path: Settings > private-X app > Photos > Full Access
-5. Remember to keep the app running in the foreground while backing up files, as exiting may result in interrupted transfers.
-6. Backing up files may affect the cloud phone operation experience; it is recommended to finish file transfers before using cloud phone operations.";
+3. Uploading/downloading files may impact the cloud phone operation experience; it is advisable to complete file transfers before engaging in cloud phone operations.";
+"backups_need_read_msg" = "1. When backing up files, the system will request access to your photo library. To ensure a smooth experience, it is recommended to choose \"Allow Full Access\" to avoid frequent pop-up interruptions. Permission path: Settings > private-X app > Photos > Full Access
+2. Remember to keep the app running in the foreground while backing up files, as exiting may result in interrupted transfers.
+3. Backing up files may affect the cloud phone operation experience; it is recommended to finish file transfers before using cloud phone operations.";

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

@@ -398,9 +398,9 @@
 "netWork_error_tip_content" = "携帯電話のネットワークに異常がある場合は、現在のネットワーク権限を確認するか、設定の下にPrivate-xを見つけてワイヤレスデータを表示する権限を確認してください";
 "netWork_error_tip_content" = "携帯電話のネットワークに異常がある場合は、現在のネットワーク権限を確認するか、設定の下にPrivate-xを見つけてワイヤレスデータを表示する権限を確認してください";
 "scan_sn_data_error_tip"   = "デバイス情報未確認。新デバイスをスキャンして繋ぐる。";
 "scan_sn_data_error_tip"   = "デバイス情報未確認。新デバイスをスキャンして繋ぐる。";
 "File_Transfer_By_Cellular_tip"   = "非WIFI環境では伝輸を一時停止します。設定画面でデータ伝輸を有効にしてください";
 "File_Transfer_By_Cellular_tip"   = "非WIFI環境では伝輸を一時停止します。設定画面でデータ伝輸を有効にしてください";
-"backups_need_read_msg" = "1. ファイルをアップロード/ダウンロードする際、システムは写真ライブラリへのアクセス権を要求します。スムーズな体験のためには、「完全アクセスを許可」を選択して頻繁なポップアップを回避することをお勧めします。 権限パス:設定 > private-Xアプリ > 写真 > 完全アクセス
+"upload_download_need_read_msg" = "1. ファイルをアップロード/ダウンロードする際、システムは写真ライブラリへのアクセス権を要求します。スムーズな体験のためには、「完全アクセスを許可」を選択して頻繁なポップアップを回避することをお勧めします。 権限パス:設定 > private-Xアプリ > 写真 > 完全アクセス
 2. ファイル転送中は、アプリを前面で実行しておくことをお勧めします。終了すると転送が中断される可能性があります。
 2. ファイル転送中は、アプリを前面で実行しておくことをお勧めします。終了すると転送が中断される可能性があります。
-3. ファイルのアップロード/ダウンロードはクラウドフォンの操作体験に影響を与える場合があります。クラウドフォンの操作を行う前にファイル転送を完了することをお勧めします。
-4. ファイルのバックアップ時、システムは写真ライブラリへのアクセス権を要求します。スムーズな体験のためには、「完全アクセスを許可」を選択して頻繁なポップアップを回避することをお勧めします。 権限パス:設定 > private-Xアプリ > 写真 > 完全アクセス
-5. ファイルをバックアップする際は、アプリを前面で実行しておいてください。終了すると転送が中断される可能性があります。
-6. ファイルのバックアップはクラウドフォンの操作体験に影響を与える場合があります。クラウドフォンの操作を行う前にファイル転送を完了することをお勧めします。";
+3. ファイルのアップロード/ダウンロードはクラウドフォンの操作体験に影響を与える場合があります。クラウドフォンの操作を行う前にファイル転送を完了することをお勧めします。";
+"backups_need_read_msg" = "1. ファイルのバックアップ時、システムは写真ライブラリへのアクセス権を要求します。スムーズな体験のためには、「完全アクセスを許可」を選択して頻繁なポップアップを回避することをお勧めします。 権限パス:設定 > private-Xアプリ > 写真 > 完全アクセス
+2. ファイルをバックアップする際は、アプリを前面で実行しておいてください。終了すると転送が中断される可能性があります。
+3. ファイルのバックアップはクラウドフォンの操作体験に影響を与える場合があります。クラウドフォンの操作を行う前にファイル転送を完了することをお勧めします。";

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

@@ -398,11 +398,11 @@
 "netWork_error_tip_content" = "手机网络异常,请检查当前网络权限,或者在设置里拉到底部找到Private-x进入查看无线数据权限";
 "netWork_error_tip_content" = "手机网络异常,请检查当前网络权限,或者在设置里拉到底部找到Private-x进入查看无线数据权限";
 "scan_sn_data_error_tip"   = "设备信息不存在,请扫码绑定新设备";
 "scan_sn_data_error_tip"   = "设备信息不存在,请扫码绑定新设备";
 "File_Transfer_By_Cellular_tip"   = "非WIFI环境将暂停传输,请在设置页面开启流量传输";
 "File_Transfer_By_Cellular_tip"   = "非WIFI环境将暂停传输,请在设置页面开启流量传输";
-"backups_need_read_msg" = "1、上传/下载文件时,系统将请求相册访问权限。为确保顺畅体验,建议您选择【允许完全访问】,以避免频繁弹窗打扰。权限路径:设置> private-X应用>照片>完全访问\n
+"upload_download_need_read_msg" = "1、上传/下载文件时,系统将请求相册访问权限。为确保顺畅体验,建议您选择【允许完全访问】,以避免频繁弹窗打扰。权限路径:设置> private-X应用>照片>完全访问\n
 2、上传/下载文件时,请保持APP前台运行,退出将会导致传输中断;\n
 2、上传/下载文件时,请保持APP前台运行,退出将会导致传输中断;\n
-3、上传/下载文件时,可能会影响云机操作体验,建议先完成文件传输再进行云机操作;\n
-4、备份文件时,系统将请求相册访问权限。为确保顺畅体验,建议您选择【允许完全访问】,以避免频繁弹窗打扰。权限路径:设置> private-X应用>照片>完全访问;\n
-5、备份文件时,请保持APP前台运行,退出将会导致传输中断;\n
-6、备份文件时,可能会影响云机操作体验,建议先完成文件传输再进行云机操作;";
+3、上传/下载文件时,可能会影响云机操作体验,建议先完成文件传输再进行云机操作;";
+"backups_need_read_msg" = "1、备份文件时,系统将请求相册访问权限。为确保顺畅体验,建议您选择【允许完全访问】,以避免频繁弹窗打扰。权限路径:设置> private-X应用>照片>完全访问;\n
+2、备份文件时,请保持APP前台运行,退出将会导致传输中断;\n
+3、备份文件时,可能会影响云机操作体验,建议先完成文件传输再进行云机操作;";
 "File_Transfer_Disable_tip"   = "此功能暂时无法使用,请插拔电源更新设备。恢复电源和网络后,预计需要15分钟完成更新,更新期间将无法使用云机。";
 "File_Transfer_Disable_tip"   = "此功能暂时无法使用,请插拔电源更新设备。恢复电源和网络后,预计需要15分钟完成更新,更新期间将无法使用云机。";
 "check_could_phone_state"   = "请先进入云机后再进行操作!";
 "check_could_phone_state"   = "请先进入云机后再进行操作!";

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

@@ -398,12 +398,12 @@
 "netWork_error_tip_content" = "手機網絡异常,請檢查當前網絡許可權,或者在設定里拉到底部找到Private-x進入查看無線數據許可權";
 "netWork_error_tip_content" = "手機網絡异常,請檢查當前網絡許可權,或者在設定里拉到底部找到Private-x進入查看無線數據許可權";
 "scan_sn_data_error_tip"   = "設備資訊不存在,請掃碼綁定新設備";
 "scan_sn_data_error_tip"   = "設備資訊不存在,請掃碼綁定新設備";
 "File_Transfer_By_Cellular_tip"   = "非WIFI環境將暂停傳輸,請在设置頁面開啟流量傳輸";
 "File_Transfer_By_Cellular_tip"   = "非WIFI環境將暂停傳輸,請在设置頁面開啟流量傳輸";
-"backups_need_read_msg" = "1. 上傳/下載文件時,系統將請求相冊訪問權限。為確保順暢體驗,建議您選擇【允許完全訪問】,以避免頻繁彈窗打擾。
+"upload_download_need_read_msg" = "1. 上傳/下載文件時,系統將請求相冊訪問權限。為確保順暢體驗,建議您選擇【允許完全訪問】,以避免頻繁彈窗打擾。
 權限路徑:設置> private-X應用>照片>完全訪問\n
 權限路徑:設置> private-X應用>照片>完全訪問\n
 2. 上傳/下載文件時,請保持APP在前台運行,退出將導致傳輸中斷;
 2. 上傳/下載文件時,請保持APP在前台運行,退出將導致傳輸中斷;
-3. 上傳/下載文件時,可能會影響雲機操作體驗,建議先完成文件傳輸再進行雲機操作;
-4. 備份文件時,系統將請求相冊訪問權限。為確保順暢體驗,建議您選擇【允許完全訪問】,以避免頻繁彈窗打擾。
+3. 上傳/下載文件時,可能會影響雲機操作體驗,建議先完成文件傳輸再進行雲機操作;";
+"backups_need_read_msg" = "1. 備份文件時,系統將請求相冊訪問權限。為確保順暢體驗,建議您選擇【允許完全訪問】,以避免頻繁彈窗打擾。
 權限路徑:設置> private-X應用>照片>完全訪問\n
 權限路徑:設置> private-X應用>照片>完全訪問\n
-5. 備份文件時,請保持APP在前台運行,退出將導致傳輸中斷;
-6. 備份文件時,可能會影響雲機操作體驗,建議先完成文件傳輸再進行雲機操作;";
+2. 備份文件時,請保持APP在前台運行,退出將導致傳輸中斷;
+3. 備份文件時,可能會影響雲機操作體驗,建議先完成文件傳輸再進行雲機操作;";
 "File_Transfer_Disable_tip"   = "此功能暂时无法使用,请插拔电源更新设备。恢复电源和网络后,预计需要15分钟完成更新,更新期间将无法使用云机。";
 "File_Transfer_Disable_tip"   = "此功能暂时无法使用,请插拔电源更新设备。恢复电源和网络后,预计需要15分钟完成更新,更新期间将无法使用云机。";