mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-18 13:00:36 +01:00
do not try closing the media fetching cursor twice
This commit is contained in:
parent
8e5f72f59b
commit
e53d6a5c20
@ -69,7 +69,6 @@ private fun parseCursor(context: Context, cur: Cursor, isPickImage: Boolean, isP
|
||||
val showMedia = config.showMedia
|
||||
val showHidden = config.shouldShowHidden
|
||||
|
||||
cur.use { cur ->
|
||||
if (cur.moveToFirst()) {
|
||||
var filename: String
|
||||
var path: String
|
||||
@ -143,7 +142,6 @@ private fun parseCursor(context: Context, cur: Cursor, isPickImage: Boolean, isP
|
||||
}
|
||||
} while (cur.moveToNext())
|
||||
}
|
||||
}
|
||||
|
||||
Medium.sorting = config.getFileSorting(curPath)
|
||||
curMedia.sort()
|
||||
|
Loading…
x
Reference in New Issue
Block a user