|
@@ -267,11 +267,11 @@ public class BackupFragment extends FileFragment implements DatePickerDialog.OnD
|
|
|
|
|
|
@Override
|
|
@Override
|
|
protected void onPostExecute(Boolean result) {
|
|
protected void onPostExecute(Boolean result) {
|
|
- if (result) {
|
|
|
|
|
|
+ if (result && binding != null) {
|
|
OCFile backupFolder = storageManager.getFileByPath(backupFolderPath);
|
|
OCFile backupFolder = storageManager.getFileByPath(backupFolderPath);
|
|
|
|
|
|
List<OCFile> backupFiles = storageManager
|
|
List<OCFile> backupFiles = storageManager
|
|
- .getFolderContent(backupFolder, false);
|
|
|
|
|
|
+ .getFolderContent(backupFolder, false);
|
|
|
|
|
|
Collections.sort(backupFiles, new AlphanumComparator<>());
|
|
Collections.sort(backupFiles, new AlphanumComparator<>());
|
|
|
|
|