浏览代码

Merge pull request #3567 from nextcloud/sortFavorites

sort files after set/unset favorite
Tobias Kaminsky 6 年之前
父节点
当前提交
aae0eac155
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java

+ 3 - 0
src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java

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