|
@@ -9,6 +9,7 @@
|
|
|
|
|
|
#import "fileSetTableViewCell.h"
|
|
|
#import "fileTransferPathCheckViewController.h"
|
|
|
+#import "backupsFileManager.h"
|
|
|
|
|
|
@interface backupsSetViewController ()<UITableViewDelegate,UITableViewDataSource>
|
|
|
@property (nonatomic, strong) UITableView *tableView;
|
|
@@ -139,7 +140,15 @@
|
|
|
- (void)setUploadFilePathLabelTitleFun
|
|
|
{
|
|
|
NSString * leftStr = NSLocalizedString(@"File_backups_path_way_tip",nil);
|
|
|
- NSString * rightStr = @"我的空间/来自【手机设备名称】的相册备份";
|
|
|
+
|
|
|
+ NSString * backupsDefaultPath = [HWDataManager getStringWithKey:Const_photo_backups_default_path];
|
|
|
+
|
|
|
+ if(!backupsDefaultPath || backupsDefaultPath.length == 0){
|
|
|
+ backupsDefaultPath = @"/sdcard/Download/";
|
|
|
+ [HWDataManager setStringWithKey:Const_photo_backups_default_path value:backupsDefaultPath];
|
|
|
+ }
|
|
|
+
|
|
|
+ NSString * rightStr = backupsDefaultPath;
|
|
|
|
|
|
NSString *totalStr = [[NSString alloc] initWithFormat:@"%@%@",leftStr,rightStr];
|
|
|
|
|
@@ -160,6 +169,13 @@
|
|
|
#pragma mark 尾部事件
|
|
|
- (void)didClickTailViewFun
|
|
|
{
|
|
|
+ photosBackupsTaskModel* model = [backupsFileManager shareInstance].curPhotosBackupsTaskMod;
|
|
|
+
|
|
|
+ if(model && model.curBackupsState == backupsStateUploading){
|
|
|
+ [[iToast makeText:NSLocalizedString(@"File_backups_set_default_path_tip",nil)] show];
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
fileTransferPathCheckViewController *vc = [fileTransferPathCheckViewController new];
|
|
|
vc.curType = 2;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|