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);
|
mWebView = findViewById(R.id.webview);
|
||||||
|
|
||||||
|
if (BuildConfig.DEBUG) {
|
||||||
|
mWebView.setWebContentsDebuggingEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
mWebView.setOnApplyWindowInsetsListener((view, insets) -> {
|
mWebView.setOnApplyWindowInsetsListener((view, insets) -> {
|
||||||
windowInsetTop = insets.getSystemWindowInsetTop();
|
windowInsetTop = insets.getSystemWindowInsetTop();
|
||||||
mWebView.evaluateJavascript("updateInset()", null);
|
mWebView.evaluateJavascript("updateInset()", null);
|
||||||
|
|
Loading…
Reference in New Issue