jenkins-bot has submitted this change and it was merged.
Change subject: Restrict WebView debug enabled call to debug APKs only
......................................................................
Restrict WebView debug enabled call to debug APKs only
Only call WebView.setWebContentsDebuggingEnabled
if app is built in debug mode. No need to call this for release
builds since the default is false.
This patch may or may not fix T113052 but it will change the kind
of outer stack traces we get for this issue (the inner most part, though,
should stay the same). It will postpone the missing WebView issue
until later. The call happens very early when the Application object is created.
Bug: T113052
Change-Id: Ia9bd9869f7f5fc8004782d996cb4d379e69d8b24
---
M app/src/main/java/org/wikipedia/WikipediaApp.java
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Sniedzielski: Looks good to me, approved
Mholloway: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/app/src/main/java/org/wikipedia/WikipediaApp.java
b/app/src/main/java/org/wikipedia/WikipediaApp.java
index f1c7d10..e5f92ad 100644
--- a/app/src/main/java/org/wikipedia/WikipediaApp.java
+++ b/app/src/main/java/org/wikipedia/WikipediaApp.java
@@ -612,8 +612,8 @@
@TargetApi(Build.VERSION_CODES.KITKAT)
private void enableWebViewDebugging() {
- if (ApiUtil.hasKitKat()) {
- WebView.setWebContentsDebuggingEnabled(BuildConfig.DEBUG);
+ if (BuildConfig.DEBUG && ApiUtil.hasKitKat()) {
+ WebView.setWebContentsDebuggingEnabled(true);
}
}
--
To view, visit https://gerrit.wikimedia.org/r/249969
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia9bd9869f7f5fc8004782d996cb4d379e69d8b24
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: BearND <[email protected]>
Gerrit-Reviewer: Brion VIBBER <[email protected]>
Gerrit-Reviewer: Dbrant <[email protected]>
Gerrit-Reviewer: Mholloway <[email protected]>
Gerrit-Reviewer: Niedzielski <[email protected]>
Gerrit-Reviewer: Sniedzielski <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits