Skip to content

Commit

Permalink
Fixes #8234 Additional debug info added
Browse files Browse the repository at this point in the history
  • Loading branch information
2tanayk committed Mar 22, 2021
1 parent 8e4090e commit 8213854
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions AnkiDroid/src/main/java/com/ichi2/anki/Info.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,14 @@ public String copyDebugInfo() {
webviewUserAgent = getWebviewUserAgent();
} catch (Throwable e) {
AnkiDroidApp.sendExceptionReport(e, "Info::copyDebugInfo()", "some issue occured while extracting webview user agent");
return null;
}

String debugInfo = "AnkiDroid Version = " + VersionUtils.getPkgVersionName() + "\n\n" +
"Android Version = " + Build.VERSION.RELEASE + "\n\n" +
"Manufacturer = " + Build.MANUFACTURER + "\n\n" +
"Model = " + Build.MODEL + "\n\n" +
"Hardware = " + Build.HARDWARE+"\n\n" +
"Webview User Agent = "+ webviewUserAgent +
"Webview User Agent = " + webviewUserAgent +
"ACRA UUID = " + Installation.id(this) + "\n\n" +
"Scheduler = " + schedName + "\n\n" +
"Crash Reports Enabled = " + isSendingCrashReports() + "\n\n" +
Expand All @@ -248,7 +247,7 @@ public String copyDebugInfo() {
}

private String getWebviewUserAgent() {
return new WebView(this).getSettings().getUserAgentString()+ "\n\n";
return new WebView(this).getSettings().getUserAgentString() + "\n\n";
}

private boolean isSendingCrashReports() {
Expand Down

0 comments on commit 8213854

Please sign in to comment.