Notify adapter that data changed

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-07-01 18:18:24 +02:00 committed by AndyScherzinger
parent c012c15e05
commit 295e35febd
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -562,11 +562,9 @@ public class FolderSyncActivity extends FileActivity implements FolderSyncAdapte
@Override
public void onDeleteSyncedFolderPreference(SyncedFolderParcelable syncedFolder) {
// TODO refresh recycler view
mSyncedFolderProvider.deleteSyncedFolder(syncedFolder.getId());
mAdapter.removeItem(syncedFolder.getSection());
mAdapter.notifyDataSetChanged();
}
/**