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

Commit d37870af authored by Joe Onorato's avatar Joe Onorato
Browse files

Don't crash if there is no phone app and someone presses the phone button.

The phone button probably doesn't exist on products without phone apps,
but the monkeys still know how to find it.

Change-Id: I36aca53506c8d7d7565df8674aff9d59745139e0
parent cf2bdd1f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1504,7 +1504,11 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
        sendCloseSystemWindows();
        Intent intent = new Intent(Intent.ACTION_CALL_BUTTON);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        try {
            getContext().startActivity(intent);
        } catch (ActivityNotFoundException e) {
            Log.w(TAG, "No activity found for android.intent.action.CALL_BUTTON.");
        }
    }

    @Override