Skip to content

Commit

Permalink
Use AnkiDroid-specific ACRA pref for always send
Browse files Browse the repository at this point in the history
Related #6662 - where we add telemetry on crop URI errors but only if silent
  • Loading branch information
mikehardy committed Jul 16, 2020
1 parent 0d02029 commit e0be1ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AnkiDroid/src/main/java/com/ichi2/anki/AnkiDroidApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ public static void sendExceptionReport(Throwable e, String origin, String additi
UsageAnalytics.sendAnalyticsException(e, false);

if (onlyIfSilent) {
boolean alwaysAccept = getSharedPrefs(getInstance().getApplicationContext()).getBoolean(ACRA.PREF_ALWAYS_ACCEPT, false);
if (!alwaysAccept) {
String reportMode = getSharedPrefs(getInstance().getApplicationContext()).getString(AnkiDroidApp.FEEDBACK_REPORT_KEY, FEEDBACK_REPORT_ASK);
if (!FEEDBACK_REPORT_ALWAYS.equals(reportMode)) {
Timber.i("sendExceptionReport - onlyIfSilent true, but ACRA is not 'always accept'. Skipping report send.");
return;
}
Expand Down

0 comments on commit e0be1ff

Please sign in to comment.