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

@ -45,10 +45,11 @@ import org.apache.http.message.BasicHeader;
import org.thoughtcrime.securesms.database.ApnDatabase;
import org.thoughtcrime.securesms.util.ServiceUtil;
import org.thoughtcrime.securesms.util.TelephonyUtil;
import org.thoughtcrime.securesms.util.TextSecurePreferences;
import org.thoughtcrime.securesms.util.Util;
import org.session.libsignal.libsignal.util.guava.Optional;
import org.session.libsession.utilities.TextSecurePreferences;
import org.session.libsession.utilities.Util;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;

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