|
@@ -246,7 +246,13 @@
|
|
|
{
|
|
|
_selectIndex = row;
|
|
|
NSString *cutPath = _folderListArr[row];
|
|
|
- [HWDataManager setStringWithKey:Const_photo_backups_default_path value:cutPath];
|
|
|
+ if(_curType == 2){
|
|
|
+ [HWDataManager setStringWithKey:Const_photo_backups_default_path value:cutPath];
|
|
|
+ }
|
|
|
+ else if(_curType == 1){
|
|
|
+ [HWDataManager setStringWithKey:Const_photo_upload_default_path value:cutPath];
|
|
|
+ }
|
|
|
+
|
|
|
[self.tableView reloadData];
|
|
|
|
|
|
}
|
|
@@ -259,8 +265,14 @@
|
|
|
//NSString *curbackupsDefaultPath = [[NSString alloc] initWithFormat:@"sdcard/%@",_createFolderNameStr];
|
|
|
NSString *curbackupsDefaultPath = [[NSString alloc] initWithFormat:@"%@/%@",diskPathStr,_createFolderNameStr];
|
|
|
|
|
|
+ if(_curType == 2){
|
|
|
+ [HWDataManager setStringWithKey:Const_photo_backups_default_path value:curbackupsDefaultPath];
|
|
|
+ }
|
|
|
+ else if(_curType == 1){
|
|
|
+ [HWDataManager setStringWithKey:Const_photo_upload_default_path value:curbackupsDefaultPath];
|
|
|
+ }
|
|
|
|
|
|
- [HWDataManager setStringWithKey:Const_photo_backups_default_path value:curbackupsDefaultPath];
|
|
|
+ //[HWDataManager setStringWithKey:Const_photo_backups_default_path value:curbackupsDefaultPath];
|
|
|
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:createFolderBeginNotification object:curbackupsDefaultPath];/*发送通知*/
|
|
|
}
|
|
@@ -294,6 +306,10 @@
|
|
|
|
|
|
NSString * backupsDefaultPath = [HWDataManager getStringWithKey:Const_photo_backups_default_path];
|
|
|
|
|
|
+ if(_curType == 1){
|
|
|
+ backupsDefaultPath = [HWDataManager getStringWithKey:Const_photo_upload_default_path];
|
|
|
+ }
|
|
|
+
|
|
|
NSString *lastbackupsStr = [backupsDefaultPath substringFromIndex:backupsDefaultPath.length -1];
|
|
|
|
|
|
BOOL needAddHadDefaultPath = YES;
|