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

Commit 417309a7 authored by Jay Shrauner's avatar Jay Shrauner
Browse files

Fix ActivityNotFound crash

Show toast when no activity is enabled to handle intent.

Bug:18086629
Change-Id: Id17dac1872fc9ab81b02295c5f8edffa649fbcca
parent b2215766
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -375,7 +375,12 @@ public class QuickContactActivity extends ContactsActivity {
            getWindow().setDimAmount(mWindowScrim.getAlpha() / DEFAULT_SCRIM_ALPHA);

            mHasIntentLaunched = true;
            try {
                startActivity(intent);
            } catch (ActivityNotFoundException ex) {
                Toast.makeText(QuickContactActivity.this, R.string.missing_app,
                        Toast.LENGTH_SHORT).show();
            }
        }
    };