Skip to content

Commit c51f3f0

Browse files
author
Vivek Maskara
authored
Merge pull request commons-app#1204 from ayushin78/feedbackEmailClients
Show only the email clients in Feedback Feature (commons-app#1203)
2 parents 215c97e + 81064de commit c51f3f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/fr/free/nrw/commons/theme/NavigationBaseActivity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import android.content.ActivityNotFoundException;
66
import android.content.Context;
77
import android.content.Intent;
8+
import android.net.Uri;
89
import android.support.annotation.NonNull;
910
import android.support.design.widget.NavigationView;
1011
import android.support.v4.widget.DrawerLayout;
@@ -119,8 +120,9 @@ public boolean onNavigationItemSelected(@NonNull final MenuItem item) {
119120
return true;
120121
case R.id.action_feedback:
121122
drawerLayout.closeDrawer(navigationView);
122-
Intent feedbackIntent = new Intent(Intent.ACTION_SEND);
123+
Intent feedbackIntent = new Intent(Intent.ACTION_SENDTO);
123124
feedbackIntent.setType("message/rfc822");
125+
feedbackIntent.setData(Uri.parse("mailto:"));
124126
feedbackIntent.putExtra(Intent.EXTRA_EMAIL,
125127
new String[]{CommonsApplication.FEEDBACK_EMAIL});
126128
feedbackIntent.putExtra(Intent.EXTRA_SUBJECT,

0 commit comments

Comments
 (0)