From 127506baf346a41a386722bcdda8f2da3ffe2b24 Mon Sep 17 00:00:00 2001 From: AndyScherzinger Date: Sun, 28 May 2017 00:45:14 +0200 Subject: [PATCH] added todo where the list refresh should take place --- .../com/owncloud/android/ui/activity/FolderSyncActivity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/owncloud/android/ui/activity/FolderSyncActivity.java b/src/main/java/com/owncloud/android/ui/activity/FolderSyncActivity.java index d010942fe9..5e210db8fb 100644 --- a/src/main/java/com/owncloud/android/ui/activity/FolderSyncActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/FolderSyncActivity.java @@ -481,6 +481,11 @@ public class FolderSyncActivity extends FileActivity implements FolderSyncAdapte item.setId(storedId); } + // custom folders newly created aren't in the list already, + // so triggering a refresh + if (MediaFolder.CUSTOM.equals(item.getType())) { + // TODO add item to the list and enforce a refresh + } } else { // existing synced folder setup to be updated mSyncedFolderProvider.updateSyncFolder(item);