diff --git a/briar-android/src/org/briarproject/android/DevReportActivity.java b/briar-android/src/org/briarproject/android/DevReportActivity.java index 4c550b07f960e1ce3fdbc81affd6649dcbf8973b..2ea4e07e370b558cef1e433bb3a2febb0fb1295a 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(); }