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

Commit c3f0b2d1 authored by Joe Onorato's avatar Joe Onorato Committed by Android (Google) Code Review
Browse files

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

parents 8ece274d d37870af
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