mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
Merge pull request #3567 from nextcloud/sortFavorites
sort files after set/unset favorite
This commit is contained in:
commit
aae0eac155
1 changed files with 3 additions and 0 deletions
|
@ -178,6 +178,9 @@ public class OCFileListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FileSortOrder sortOrder = PreferenceManager.getSortOrderByFolder(mContext, currentDirectory);
|
||||||
|
mFiles = sortOrder.sortCloudFiles(mFiles);
|
||||||
|
|
||||||
new Handler(Looper.getMainLooper()).post(this::notifyDataSetChanged);
|
new Handler(Looper.getMainLooper()).post(this::notifyDataSetChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue