Minor bug and aesthetic

This commit is contained in:
Jared Forrest
2022-06-01 20:23:47 +01:00
parent 56b7a9c237
commit 727cd08871
3 changed files with 4 additions and 11 deletions

View File

@@ -145,10 +145,10 @@ fun getFileNameFromUri(uri: Uri, context: Context): String =
if (nameIndex != null) cursor.getString(nameIndex) else ""
}.substringBeforeLast('.')
fun checkValidFile(uri: Uri, context: Context) = context.contentResolver.openAssetFileDescriptor(
fun checkValidFile(uri: Uri, context: Context) = (context.contentResolver.openAssetFileDescriptor(
uri,
"r"
)?.length ?: 10001 < 10000 /* 10kb max file size */
)?.length ?: 10001) < 10000 /* 10kb max file size */
sealed class FileError {
/* object FileReadError : FileError()

View File

@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.6.10'
ext.kotlin_version = '1.6.21'
repositories {
google()
mavenCentral()

View File

@@ -1,12 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="108dp"
height="108dp"
viewBox="0 0 108 108"
version="1.1"
id="svg1943"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<svg width="108dp" height="108dp" viewBox="0 0 108 108" version="1.1" id="svg1943" xmlns="http://www.w3.org/2000/svg">
<defs
id="defs1947" />
<path

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB