Update UniFile

Which has more correct nullability for some methods and case insensitivity for listFiles where possible.
This commit is contained in:
arkon
2023-11-27 22:21:40 -05:00
parent d85a76484c
commit a74a689c90
9 changed files with 17 additions and 16 deletions

View File

@@ -165,7 +165,7 @@ fun Context.createReaderThemeContext(): Context {
* @return document size of [uri] or null if size can't be obtained
*/
fun Context.getUriSize(uri: Uri): Long? {
return UniFile.fromUri(this, uri).length().takeIf { it >= 0 }
return UniFile.fromUri(this, uri)?.length()?.takeIf { it >= 0 }
}
/**