catch and show exceptions thrown at showing No Space error
This commit is contained in:
parent
9cb42361f5
commit
bf2adc8fa1
2 changed files with 7 additions and 3 deletions
|
@ -6,7 +6,7 @@ buildscript {
|
|||
propMinSdkVersion = 21
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '5.32.21'
|
||||
propVersionName = '5.32.22'
|
||||
kotlin_version = '1.4.21'
|
||||
}
|
||||
|
||||
|
|
|
@ -436,8 +436,12 @@ abstract class BaseSimpleActivity : AppCompatActivity() {
|
|||
CopyMoveTask(this, isCopyOperation, copyPhotoVideoOnly, it, copyMoveListener, copyHidden).execute(pair)
|
||||
}
|
||||
} else {
|
||||
val text = String.format(getString(R.string.no_space), sumToCopy.formatSize(), availableSpace.formatSize())
|
||||
toast(text, Toast.LENGTH_LONG)
|
||||
try {
|
||||
val text = String.format(getString(R.string.no_space), sumToCopy.formatSize(), availableSpace.formatSize())
|
||||
toast(text, Toast.LENGTH_LONG)
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue