fix(lib): Android 10 screenshot sorted incorrectly (#98)

Fixes #97
This commit is contained in:
Seph Soliman 2019-11-07 05:17:11 -08:00 committed by Bartol Karuza
parent c0a132daec
commit 902abd4f70
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ public class CameraRollModule extends ReactContextBaseJavaModule {
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");