Remove default toast parameter
This commit is contained in:
parent
e6515436d9
commit
a5f57a239a
1 changed files with 2 additions and 2 deletions
|
|
@ -879,7 +879,7 @@ class ThreadActivity : SimpleActivity() {
|
||||||
val mimeType = contentResolver.getType(selection.uri) ?: continue
|
val mimeType = contentResolver.getType(selection.uri) ?: continue
|
||||||
message.addMedia(byteArray, mimeType)
|
message.addMedia(byteArray, mimeType)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
showErrorToast(e, length = Toast.LENGTH_LONG)
|
showErrorToast(e)
|
||||||
} catch (e: Error) {
|
} catch (e: Error) {
|
||||||
toast(e.localizedMessage ?: getString(R.string.unknown_error_occurred), length = Toast.LENGTH_LONG)
|
toast(e.localizedMessage ?: getString(R.string.unknown_error_occurred), length = Toast.LENGTH_LONG)
|
||||||
}
|
}
|
||||||
|
|
@ -904,7 +904,7 @@ class ThreadActivity : SimpleActivity() {
|
||||||
refreshMessages()
|
refreshMessages()
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
showErrorToast(e, length = Toast.LENGTH_LONG)
|
showErrorToast(e)
|
||||||
} catch (e: Error) {
|
} catch (e: Error) {
|
||||||
toast(e.localizedMessage ?: getString(R.string.unknown_error_occurred), length = Toast.LENGTH_LONG)
|
toast(e.localizedMessage ?: getString(R.string.unknown_error_occurred), length = Toast.LENGTH_LONG)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue