Removed Kotpref and replaced it with PreferenceModel

This commit is contained in:
Viktor De Pasquale
2019-06-03 16:35:36 +02:00
committed by John Wu
parent 28efded624
commit d1dfda405f
13 changed files with 268 additions and 27 deletions

View File

@@ -18,4 +18,6 @@ fun StringBuilder.appendIf(condition: Boolean, builder: StringBuilder.() -> Unit
fun Int.res(vararg args: Any): String {
val resources: Resources by inject()
return resources.getString(this, *args)
}
}
fun String.trimEmptyToNull(): String? = if (isBlank()) null else this