Don't save the user's email automatically from crash reports

This commit is contained in:
str4d
2016-04-27 10:04:59 +00:00
parent c44b6a4095
commit 1a90d3c39f

View File

@@ -314,26 +314,14 @@ public class DevReportActivity extends BaseCrashReportDialog
} }
if (success) { if (success) {
// Retrieve user comment // Retrieve user's comment and email address, if any
final String comment = userCommentView != null ? String comment = "";
userCommentView.getText().toString() : ""; if (userCommentView != null)
comment = userCommentView.getText().toString();
// Store the user email String email = "";
final String userEmail; if (userEmailView != null)
if (userEmailView != null) { email = userEmailView.getText().toString();
userEmail = userEmailView.getText().toString(); sendCrash(comment, email);
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);
} }
finish(); finish();
} }