mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Add way to send feedback via email
This commit is contained in:
parent
1d603cd9eb
commit
d76541ceec
4 changed files with 15 additions and 0 deletions
|
|
@ -59,6 +59,9 @@ public class CommonsApplication extends Application {
|
|||
|
||||
public static final String DEFAULT_EDIT_SUMMARY = "Uploaded using Android Commons app";
|
||||
|
||||
public static final String FEEDBACK_EMAIL = "mobile-feedback-l@lists.wikimedia.org";
|
||||
public static final String FEEDBACK_EMAIL_SUBJECT = "Commons Android App (%s) Feedback";
|
||||
|
||||
|
||||
public static AbstractHttpClient createHttpClient() {
|
||||
DefaultHttpClient client = new DefaultHttpClient();
|
||||
|
|
|
|||
|
|
@ -225,6 +225,13 @@ public class ContributionsListFragment extends SherlockFragment {
|
|||
Intent aboutIntent = new Intent(getActivity(), AboutActivity.class);
|
||||
startActivity(aboutIntent);
|
||||
return true;
|
||||
case R.id.menu_feedback:
|
||||
Intent feedbackIntent = new Intent(Intent.ACTION_SEND);
|
||||
feedbackIntent.setType("message/rfc822");
|
||||
feedbackIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { CommonsApplication.FEEDBACK_EMAIL });
|
||||
feedbackIntent.putExtra(Intent.EXTRA_SUBJECT, String.format(CommonsApplication.FEEDBACK_EMAIL_SUBJECT, CommonsApplication.APPLICATION_VERSION));
|
||||
startActivity(feedbackIntent);
|
||||
|
||||
default:
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue