From 53b4df7bf87095f79598032226d810f834a2240e Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Wed, 30 Jan 2019 17:56:08 +0100 Subject: [PATCH] Resolves: #3531 changing the email intent Signed-off-by: Andy Scherzinger --- .../java/com/owncloud/android/ui/activity/Preferences.java | 6 +++--- src/main/res/values/setup.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/activity/Preferences.java b/src/main/java/com/owncloud/android/ui/activity/Preferences.java index 4cbec4bd2f..34c68914a1 100644 --- a/src/main/java/com/owncloud/android/ui/activity/Preferences.java +++ b/src/main/java/com/owncloud/android/ui/activity/Preferences.java @@ -356,10 +356,10 @@ public class Preferences extends PreferenceActivity if (pFeedback != null) { if (feedbackEnabled) { pFeedback.setOnPreferenceClickListener(preference -> { - String feedbackMail = getString(R.string.mail_feedback); String feedback = getText(R.string.prefs_feedback) + " - android v" + appVersion; - Intent intent = new Intent(Intent.ACTION_SENDTO); - intent.setDataAndType(Uri.parse(feedbackMail), "text/plain"); + Intent intent = new Intent(Intent.ACTION_SENDTO, + Uri.fromParts("mailto", "", null)); + intent.putExtra(android.content.Intent.EXTRA_EMAIL,new String[] { getString(R.string.mail_feedback) }); intent.putExtra(Intent.EXTRA_SUBJECT, feedback); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); diff --git a/src/main/res/values/setup.xml b/src/main/res/values/setup.xml index 61f61e9d81..d172c7f79c 100644 --- a/src/main/res/values/setup.xml +++ b/src/main/res/values/setup.xml @@ -107,7 +107,7 @@ true https://www.gnu.org/licenses/gpl-2.0.html - "mailto:android@nextcloud.com" + android@nextcloud.com "https://play.google.com/store/apps/details?id=com.nextcloud.client" https://nextcloud.com/install