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
1 changed files with 4 additions and 0 deletions

View File

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