mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Show only the email clients in Feedback Feature (#1203)
Instead of showing only the email clients, The Feedback feature was showing multiple unsupported clients (WhatsApp, Bluetooth etc) * Changes made to let the user choose from the available email related clients only.
This commit is contained in:
parent
215c97e132
commit
81064dee10
1 changed files with 3 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import android.accounts.AccountManager;
|
||||||
import android.content.ActivityNotFoundException;
|
import android.content.ActivityNotFoundException;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.net.Uri;
|
||||||
import android.support.annotation.NonNull;
|
import android.support.annotation.NonNull;
|
||||||
import android.support.design.widget.NavigationView;
|
import android.support.design.widget.NavigationView;
|
||||||
import android.support.v4.widget.DrawerLayout;
|
import android.support.v4.widget.DrawerLayout;
|
||||||
|
|
@ -119,8 +120,9 @@ public abstract class NavigationBaseActivity extends BaseActivity
|
||||||
return true;
|
return true;
|
||||||
case R.id.action_feedback:
|
case R.id.action_feedback:
|
||||||
drawerLayout.closeDrawer(navigationView);
|
drawerLayout.closeDrawer(navigationView);
|
||||||
Intent feedbackIntent = new Intent(Intent.ACTION_SEND);
|
Intent feedbackIntent = new Intent(Intent.ACTION_SENDTO);
|
||||||
feedbackIntent.setType("message/rfc822");
|
feedbackIntent.setType("message/rfc822");
|
||||||
|
feedbackIntent.setData(Uri.parse("mailto:"));
|
||||||
feedbackIntent.putExtra(Intent.EXTRA_EMAIL,
|
feedbackIntent.putExtra(Intent.EXTRA_EMAIL,
|
||||||
new String[]{CommonsApplication.FEEDBACK_EMAIL});
|
new String[]{CommonsApplication.FEEDBACK_EMAIL});
|
||||||
feedbackIntent.putExtra(Intent.EXTRA_SUBJECT,
|
feedbackIntent.putExtra(Intent.EXTRA_SUBJECT,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue