mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 13:19:52 +01:00
Don't save the user's email automatically from crash reports
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user