fix codacy

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-01-31 07:39:00 +01:00
parent 53b4df7bf8
commit 3022591419
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -357,9 +357,8 @@ public class Preferences extends PreferenceActivity
if (feedbackEnabled) { if (feedbackEnabled) {
pFeedback.setOnPreferenceClickListener(preference -> { pFeedback.setOnPreferenceClickListener(preference -> {
String feedback = getText(R.string.prefs_feedback) + " - android v" + appVersion; String feedback = getText(R.string.prefs_feedback) + " - android v" + appVersion;
Intent intent = new Intent(Intent.ACTION_SENDTO, Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("mailto", "", null));
Uri.fromParts("mailto", "", null)); intent.putExtra(Intent.EXTRA_EMAIL, new String[]{getString(R.string.mail_feedback)});
intent.putExtra(android.content.Intent.EXTRA_EMAIL,new String[] { getString(R.string.mail_feedback) });
intent.putExtra(Intent.EXTRA_SUBJECT, feedback); intent.putExtra(Intent.EXTRA_SUBJECT, feedback);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);