diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt index ef4fa25..3b8e8a5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt @@ -108,7 +108,13 @@ class MainActivity : SimpleActivity(), MyCanvas.PathsChangedListener { private fun openFile() { FilePickerDialog(this, curPath) { + if (it.endsWith(".svg")) { + } else if (File(it).isImageSlow()) { + + } else { + toast(R.string.invalid_file_format) + } } }