mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Notify adapter that data changed
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
c012c15e05
commit
295e35febd
1 changed files with 1 additions and 3 deletions
|
@ -562,11 +562,9 @@ public class FolderSyncActivity extends FileActivity implements FolderSyncAdapte
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDeleteSyncedFolderPreference(SyncedFolderParcelable syncedFolder) {
|
public void onDeleteSyncedFolderPreference(SyncedFolderParcelable syncedFolder) {
|
||||||
// TODO refresh recycler view
|
|
||||||
|
|
||||||
mSyncedFolderProvider.deleteSyncedFolder(syncedFolder.getId());
|
mSyncedFolderProvider.deleteSyncedFolder(syncedFolder.getId());
|
||||||
|
|
||||||
mAdapter.removeItem(syncedFolder.getSection());
|
mAdapter.removeItem(syncedFolder.getSection());
|
||||||
|
mAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue