enable web content debugging in debug builds

This commit is contained in:
Daniel Micay 2021-11-21 15:49:26 -05:00
parent bcef367a58
commit 216195954e
1 changed files with 4 additions and 0 deletions

View File

@ -165,6 +165,10 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
mWebView = findViewById(R.id.webview);
if (BuildConfig.DEBUG) {
mWebView.setWebContentsDebuggingEnabled(true);
}
mWebView.setOnApplyWindowInsetsListener((view, insets) -> {
windowInsetTop = insets.getSystemWindowInsetTop();
mWebView.evaluateJavascript("updateInset()", null);