This commit is contained in:
Benoit Marty 2019-05-29 09:58:29 +02:00
parent b91e7e9fb8
commit 3289cbd6e7

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))
}
}
}