Resolves: #3531 changing the email intent

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2019-01-30 17:56:08 +01:00
parent 839a61e08f
commit 53b4df7bf8
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -107,7 +107,7 @@
<bool name="license_enabled">true</bool>
<string name="license_url" translatable="false">https://www.gnu.org/licenses/gpl-2.0.html</string>
<string name="url_imprint"></string>
<string name="mail_feedback">"mailto:android@nextcloud.com"</string>
<string name="mail_feedback">android@nextcloud.com</string>
<string name="url_app_download">"https://play.google.com/store/apps/details?id=com.nextcloud.client"</string>
<string name="url_server_install">https://nextcloud.com/install</string>