Merge pull request #3567 from nextcloud/sortFavorites

sort files after set/unset favorite
This commit is contained in:
Tobias Kaminsky 2019-02-05 12:48:59 +01:00 committed by GitHub
commit aae0eac155
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}