Skip to content

Commit

Permalink
(#50) Fix bug by using projection var (computed columns) rather raw…
Browse files Browse the repository at this point in the history
… `columns`
  • Loading branch information
alexrintt committed May 31, 2022
1 parent ce1d518 commit 4396a8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ fun traverseDirectoryEntries(
while (cursor.moveToNext()) {
val data = mutableMapOf<String, Any>()

for (column in columns) {
for (column in projection) {
data[column] = cursorHandlerOf(typeOfColumn(column)!!)(
cursor,
cursor.getColumnIndexOrThrow(column)
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/folder_files/folder_file_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class _FolderFileListState extends State<FolderFileList> {
DocumentFileColumn.displayName,
DocumentFileColumn.size,
DocumentFileColumn.lastModified,
DocumentFileColumn.id,
// DocumentFileColumn.id,
DocumentFileColumn.mimeType,
];

Expand Down

0 comments on commit 4396a8e

Please sign in to comment.