make WebView debuggable in debug builds (#2548)

This commit is contained in:
Konrad Pozniak 2022-05-27 18:44:16 +02:00 committed by GitHub
parent a60d33a64b
commit becb677176
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,6 +83,10 @@ class LoginWebViewActivity : BaseActivity(), Injectable {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
if (BuildConfig.DEBUG) {
WebView.setWebContentsDebuggingEnabled(true)
}
val data = OauthLogin.parseData(intent) val data = OauthLogin.parseData(intent)
setContentView(binding.root) setContentView(binding.root)