mirror of
https://github.com/nextcloud/talk-android
synced 2025-08-05 02:55:28 +01:00
linter
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
This commit is contained in:
parent
ca4b6d5865
commit
01a155cf7c
@ -120,13 +120,12 @@ class BrowserLoginActivity : BaseActivity() {
|
||||
}
|
||||
|
||||
// CLEARTEXT is insecure, so this checks if the app is in debug mode, before enabling it
|
||||
private fun OkHttpClient.Builder.setDebuggableConnectionSpecs(): OkHttpClient.Builder {
|
||||
return if (BuildConfig.DEBUG) {
|
||||
private fun OkHttpClient.Builder.setDebuggableConnectionSpecs(): OkHttpClient.Builder =
|
||||
if (BuildConfig.DEBUG) {
|
||||
this.connectionSpecs(listOf(ConnectionSpec.COMPATIBLE_TLS, ConnectionSpec.CLEARTEXT))
|
||||
} else {
|
||||
this.connectionSpecs(listOf(ConnectionSpec.COMPATIBLE_TLS))
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleIntent() {
|
||||
val extras = intent.extras!!
|
||||
|
Loading…
Reference in New Issue
Block a user