WIP make things compile

This commit is contained in:
Ryan ZHAO
2021-01-18 14:58:11 +11:00
parent 4fc0c3dddc
commit 2d239541b9
16 changed files with 45 additions and 34 deletions

View File

@@ -1,12 +1,11 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id "org.jetbrains.kotlin.kapt"
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.1"
buildToolsVersion '29.0.3'
defaultConfig {
minSdkVersion 21

View File

@@ -963,6 +963,7 @@ object TextSecurePreferences {
return getStringPreference(context, THREAD_TRIM_LENGTH, "500")!!.toInt()
}
@JvmStatic
fun isSystemEmojiPreferred(context: Context): Boolean {
return getBooleanPreference(context, SYSTEM_EMOJI_PREF, false)
}

View File

@@ -269,4 +269,9 @@ object Util {
return ""
}
@JvmStatic
fun isEmpty(collection: Collection<*>?): Boolean {
return collection == null || collection.isEmpty()
}
}