|
@@ -223,14 +223,20 @@
|
|
|
{
|
|
|
filePathCreatPopView * filePathCreatPopV = [[filePathCreatPopView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, SCREEN_H)];
|
|
|
|
|
|
- //[self.view.window addSubview:filePathCreatPopV];
|
|
|
+ if(ksharedAppDelegate.cloudPhoneExtraFileListMod){
|
|
|
+ filePathCreatPopV.outSizeArr = ksharedAppDelegate.cloudPhoneExtraFileListMod.data;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ filePathCreatPopV.outSizeArr = @[];
|
|
|
+ }
|
|
|
+
|
|
|
[self.view addSubview:filePathCreatPopV];
|
|
|
|
|
|
filePathCreatPopV.curType = _curType;
|
|
|
|
|
|
KWeakSelf
|
|
|
- filePathCreatPopV.didClickOkBut = ^(NSString * _Nonnull folderName) {
|
|
|
- [weakSelf didGetFolderName:folderName];
|
|
|
+ filePathCreatPopV.didClickOkBut = ^(NSString * _Nonnull folderName, NSString * _Nonnull DiskPathStr) {
|
|
|
+ [weakSelf didGetFolderName:folderName withDiskPath:DiskPathStr];
|
|
|
};
|
|
|
}
|
|
|
|
|
@@ -246,15 +252,17 @@
|
|
|
}
|
|
|
|
|
|
#pragma mark
|
|
|
-- (void)didGetFolderName:(NSString*)folderName
|
|
|
+- (void)didGetFolderName:(NSString*)folderName withDiskPath:(NSString*)diskPathStr
|
|
|
{
|
|
|
_createFolderNameStr = folderName;
|
|
|
|
|
|
- NSString *curbackupsDefaultPath = [[NSString alloc] initWithFormat:@"sdcard/%@",_createFolderNameStr];
|
|
|
+ //NSString *curbackupsDefaultPath = [[NSString alloc] initWithFormat:@"sdcard/%@",_createFolderNameStr];
|
|
|
+ NSString *curbackupsDefaultPath = [[NSString alloc] initWithFormat:@"%@/%@",diskPathStr,_createFolderNameStr];
|
|
|
+
|
|
|
|
|
|
[HWDataManager setStringWithKey:Const_photo_backups_default_path value:curbackupsDefaultPath];
|
|
|
|
|
|
- [[NSNotificationCenter defaultCenter] postNotificationName:createFolderBeginNotification object:folderName];/*发送通知*/
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:createFolderBeginNotification object:curbackupsDefaultPath];/*发送通知*/
|
|
|
}
|
|
|
|
|
|
- (void)createFolderDoneNotFun:(NSNotification *)notification
|