diff --git a/app/src/main/java/com/iatfei/streakalarm/NewAboutActivity.java b/app/src/main/java/com/iatfei/streakalarm/NewAboutActivity.java index ac0f7f9..6f407d7 100644 --- a/app/src/main/java/com/iatfei/streakalarm/NewAboutActivity.java +++ b/app/src/main/java/com/iatfei/streakalarm/NewAboutActivity.java @@ -24,6 +24,8 @@ import android.content.pm.PackageManager; import android.net.Uri; import android.os.Bundle; +import android.widget.Toast; + import androidx.preference.Preference; import androidx.preference.PreferenceFragmentCompat; import androidx.annotation.NonNull; @@ -77,7 +79,7 @@ public void onCreatePreferences(Bundle bundle, String s) { } Intent emailIntent = new Intent(Intent.ACTION_SENDTO); - emailIntent.setType("*/*"); + emailIntent.setData(Uri.parse("mailto:")); PackageManager packageManager = requireActivity().getPackageManager(); if(emailIntent.resolveActivity(packageManager) == null){ Preference mail = findPreference("edit_text_preference_8"); diff --git a/app/src/main/res/xml/about.xml b/app/src/main/res/xml/about.xml index 7748fdf..8deacb8 100644 --- a/app/src/main/res/xml/about.xml +++ b/app/src/main/res/xml/about.xml @@ -70,9 +70,11 @@ app:iconSpaceReserved="false" android:summary="@string/about_email" android:title="@string/about_contact"> + +