This commit is contained in:
Benoit Marty 2019-05-29 09:58:29 +02:00
parent b91e7e9fb8
commit 3289cbd6e7
1 changed files with 5 additions and 1 deletions

View File

@ -294,7 +294,11 @@ abstract class VectorBaseActivity : BaseMvRxActivity() {
* ========================================================================================== */

fun notImplemented(message: String = "") {
toast(getString(R.string.not_implemented) + message.takeIf { message.isNotBlank() }?.let { ": $it" })
if (message.isNotBlank()) {
toast(getString(R.string.not_implemented) + ": $message")
} else {
toast(getString(R.string.not_implemented))
}
}

}