Skip to content

Commit a506005

Browse files
misaochanneslihanturan
authored andcommitted
Change email address for logs to private mailing list (commons-app#1404)
* Change email address for logs to private mailing list * Include version placeholder * Add comments
1 parent c6f728a commit a506005

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/src/main/java/fr/free/nrw/commons/CommonsApplication.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ public class CommonsApplication extends MultiDexApplication {
5454

5555
public static final String FEEDBACK_EMAIL = "commons-app-android@googlegroups.com";
5656

57+
public static final String FEEDBACK_EMAIL_SUBJECT = "Commons Android App (%s) Feedback";
58+
5759
public static final String LOGS_PRIVATE_EMAIL = "commons-app-android-private@googlegroups.com";
5860

59-
public static final String FEEDBACK_EMAIL_SUBJECT = "Commons Android App (%s) Feedback";
61+
public static final String LOGS_PRIVATE_EMAIL_SUBJECT = "Commons Android App (%s) Logs";
6062

6163
private RefWatcher refWatcher;
6264

app/src/main/java/fr/free/nrw/commons/settings/SettingsFragment.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ private void sendAppLogsViaEmail() {
151151
emailSelectorIntent.setData(Uri.parse("mailto:"));
152152
//initialize the emailIntent
153153
final Intent emailIntent = new Intent(Intent.ACTION_SEND);
154-
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{CommonsApplication.FEEDBACK_EMAIL});
155-
emailIntent.putExtra(Intent.EXTRA_SUBJECT, String.format(CommonsApplication.FEEDBACK_EMAIL_SUBJECT, BuildConfig.VERSION_NAME));
154+
// Logs must be sent to the PRIVATE email. Please do not modify this without good reason!
155+
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{CommonsApplication.LOGS_PRIVATE_EMAIL});
156+
emailIntent.putExtra(Intent.EXTRA_SUBJECT, String.format(CommonsApplication.LOGS_PRIVATE_EMAIL_SUBJECT, BuildConfig.VERSION_NAME));
156157
emailIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
157158
emailIntent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
158159
emailIntent.setSelector( emailSelectorIntent );

0 commit comments

Comments
 (0)