mirror of
https://github.com/jaredforrest/nonocross.git
synced 2025-12-05 01:00:14 +00:00
Minor bug and aesthetic
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
9
icon.svg
9
icon.svg
@@ -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 |
Reference in New Issue
Block a user