mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
remove some explicit thread creations for toasts
This commit is contained in:
@@ -155,10 +155,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
||||
private fun scanFinalPath(path: String) {
|
||||
scanPath(path) {
|
||||
setResult(Activity.RESULT_OK, intent)
|
||||
runOnUiThread {
|
||||
toast(R.string.file_saved)
|
||||
}
|
||||
|
||||
toast(R.string.file_saved)
|
||||
finish()
|
||||
}
|
||||
}
|
||||
|
@@ -408,9 +408,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
||||
val filtered = files.filter { it.exists() && it.isImageVideoGif() } as ArrayList
|
||||
deleteFiles(filtered) {
|
||||
if (!it) {
|
||||
runOnUiThread {
|
||||
toast(R.string.unknown_error_occurred)
|
||||
}
|
||||
toast(R.string.unknown_error_occurred)
|
||||
} else if (mMedia.isEmpty()) {
|
||||
finish()
|
||||
}
|
||||
|
Reference in New Issue
Block a user