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

Commit 5fb1ac7e authored by Fs00's avatar Fs00
Browse files

Handle case when there are no email apps installed

parent 319c3a84
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -24,10 +24,12 @@

package com.gsnathan.pdfviewer;

import android.content.ActivityNotFoundException;
import android.os.Bundle;

import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;

import com.franmontiel.attributionpresenter.AttributionPresenter;
import com.franmontiel.attributionpresenter.entities.Attribution;
@@ -149,7 +151,12 @@ public class AboutActivity extends CyaneaAppCompatActivity {
    }

    public void emailDev(View v) {
        startActivity(Utils.emailIntent("gokulswamilive@gmail.com", "Pdf Viewer Plus", APP_VERSION_RELEASE));
        String email = "gokulswamilive@gmail.com";
        try {
            startActivity(Utils.emailIntent(email, "Pdf Viewer Plus", APP_VERSION_RELEASE));
        } catch (ActivityNotFoundException e) {
            Toast.makeText(this, email, Toast.LENGTH_SHORT).show();
        }
    }

    public void navToGit(View v) {