-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BackupFolder #958
base: master
Are you sure you want to change the base?
BackupFolder #958
Conversation
this.email=email; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多了空行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
return false; | ||
|
||
RepoConfig that = (RepoConfig) obj; | ||
if(that.repoID == null || that.repoName == null || that.email == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
“if(t” -> "if (t" , if 后面需要有空格
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class FolderCloudLibraryFragment extends Fragment { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FolderCloudLibraryFragment -> CloudLibraryChooserFragment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
@@ -1021,17 +1022,17 @@ public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, Strin | |||
|
|||
private void showWifiDialog() { | |||
|
|||
String[]colors={"WIFI",getActivity().getString(R.string.folder_backup_mode)}; | |||
String[]buckModes={"WIFI",getActivity().getString(R.string.folder_backup_mode)}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"String[]buckModes=". 这里少了不少空格
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
@Override | ||
public void onDirectoryCreate(File directory) { | ||
backupFile(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多了空行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
|
||
} | ||
|
||
class FolderFileMonitor implements FileAlterationListener { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FolderFileMonitor -> FolderMonitor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
} | ||
} | ||
|
||
public void backupFile() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backupFile -> backupFolders
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
this.fileSize = fileSize; | ||
} | ||
|
||
public boolean canLocalDecrypt() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这部分可以去掉。目前不需要支持备份到加密资料库。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
Thanks for the implementation however, this PR breaks at least manual file upload with error :
|
Added the local folder backup function