WIP make things compile

This commit is contained in:
Ryan ZHAO
2021-01-18 15:37:23 +11:00
parent 2d239541b9
commit f7d898d5e3
2 changed files with 4 additions and 2 deletions

View File

@@ -756,6 +756,7 @@ object TextSecurePreferences {
setStringPreference(context, MMSC_PASSWORD_PREF, value)
}
@JvmStatic
fun getMmsUserAgent(context: Context, defaultUserAgent: String): String {
val useCustom: Boolean = getBooleanPreference(context, MMS_CUSTOM_USER_AGENT, false)
return if (useCustom) getStringPreference(context, MMS_USER_AGENT, defaultUserAgent)!! else defaultUserAgent