Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 319c3a84 authored by Fs00's avatar Fs00
Browse files

Fix email intent

parent de540dac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ public class AboutActivity extends CyaneaAppCompatActivity {
    }

    public void emailDev(View v) {
        startActivity(Utils.emailIntent("gokulswamilive@gmail.com", "Pdf Viewer Plus", APP_VERSION_RELEASE, "Send email..."));
        startActivity(Utils.emailIntent("gokulswamilive@gmail.com", "Pdf Viewer Plus", APP_VERSION_RELEASE));
    }

    public void navToGit(View v) {
+4 −5
Original line number Diff line number Diff line
@@ -62,13 +62,12 @@ public class Utils {
        log.show(context.getSupportFragmentManager(), "Log");
    }

    static Intent emailIntent(String emailAddress, String subject, String text, String title) {
        Intent email = new Intent(Intent.ACTION_SEND);
        email.setType("text/email");
        email.putExtra(Intent.EXTRA_EMAIL, new String[]{emailAddress});
    static Intent emailIntent(String emailAddress, String subject, String text) {
        Intent email = new Intent(Intent.ACTION_SENDTO);
        email.setData(Uri.parse("mailto:" + emailAddress));
        email.putExtra(Intent.EXTRA_SUBJECT, subject);
        email.putExtra(Intent.EXTRA_TEXT, text);
        return Intent.createChooser(email, title);
        return email;
    }

    static Intent fileShareIntent(String chooserTitle, String fileName, Uri fileUri) {