updating commons, sdk, kotlin

This commit is contained in:
tibbi
2018-09-11 13:14:44 +02:00
parent 469816589f
commit d6067001ff
5 changed files with 8 additions and 20 deletions

View File

@ -310,7 +310,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
private fun openFile(path: String, checkTitle: Boolean, onChecksPassed: (file: File) -> Unit) {
val file = File(path)
if (path.isImageVideoGif()) {
if (path.isMediaFile()) {
toast(R.string.invalid_file_format)
} else if (file.length() > 10 * 1000 * 1000) {
toast(R.string.file_too_large)