From 1a90d3c39f8994eceee231780342e4e959b08d02 Mon Sep 17 00:00:00 2001 From: str4d <str4d@mail.i2p> Date: Wed, 27 Apr 2016 10:04:59 +0000 Subject: [PATCH] Don't save the user's email automatically from crash reports --- .../android/DevReportActivity.java | 28 ++++++------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/briar-android/src/org/briarproject/android/DevReportActivity.java b/briar-android/src/org/briarproject/android/DevReportActivity.java index 4c550b07f9..2ea4e07e37 100644 --- a/briar-android/src/org/briarproject/android/DevReportActivity.java +++ b/briar-android/src/org/briarproject/android/DevReportActivity.java @@ -314,26 +314,14 @@ public class DevReportActivity extends BaseCrashReportDialog } if (success) { - // Retrieve user comment - final String comment = userCommentView != null ? - userCommentView.getText().toString() : ""; - - // Store the user email - final String userEmail; - if (userEmailView != null) { - userEmail = userEmailView.getText().toString(); - final SharedPreferences.Editor prefEditor = - prefs.edit(); - prefEditor - .putString(ACRA.PREF_USER_EMAIL_ADDRESS, - userEmail); - prefEditor.commit(); - } else { - userEmail = - prefs.getString(ACRA.PREF_USER_EMAIL_ADDRESS, - ""); - } - sendCrash(comment, userEmail); + // Retrieve user's comment and email address, if any + String comment = ""; + if (userCommentView != null) + comment = userCommentView.getText().toString(); + String email = ""; + if (userEmailView != null) + email = userEmailView.getText().toString(); + sendCrash(comment, email); } finish(); } -- GitLab