Skip to content

Commit

Permalink
fix(lib): Android 10 screenshot sorted incorrectly (#98)
Browse files Browse the repository at this point in the history
Fixes #97
  • Loading branch information
scarlac authored and bartolkaruza committed Nov 7, 2019
1 parent c0a132d commit 902abd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ protected void doInBackgroundGuarded(Void... params) {
PROJECTION,
selection.toString(),
selectionArgs.toArray(new String[selectionArgs.size()]),
Images.Media.DATE_TAKEN + " DESC, " + Images.Media.DATE_MODIFIED + " DESC LIMIT " +
Images.Media.DATE_ADDED + " DESC, " + Images.Media.DATE_MODIFIED + " DESC LIMIT " +
(mFirst + 1)); // set LIMIT to first + 1 so that we know how to populate page_info
if (media == null) {
mPromise.reject(ERROR_UNABLE_TO_LOAD, "Could not get media");
Expand Down

0 comments on commit 902abd4

Please sign in to comment.