enable web content debugging in debug builds
This commit is contained in:
parent
bcef367a58
commit
216195954e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user