adding some crashfixes
This commit is contained in:
parent
521731ec2c
commit
64011e1083
2 changed files with 9 additions and 1 deletions
|
|
@ -588,6 +588,8 @@ class ThreadActivity : SimpleActivity() {
|
|||
message.addMedia(byteArray, mimeType)
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
} catch (e: Error) {
|
||||
toast(e.localizedMessage ?: getString(R.string.unknown_error_occurred))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -601,6 +603,8 @@ class ThreadActivity : SimpleActivity() {
|
|||
thread_attachments_wrapper.removeAllViews()
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
} catch (e: Error) {
|
||||
toast(e.localizedMessage ?: getString(R.string.unknown_error_occurred))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue