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

Commit 28d35b3d authored by Yue Liang's avatar Yue Liang
Browse files

Dialer: Fix the emergence call failure in airplane mode

Add the emergence number check before popup the alert dialog.
If yes, go on handling the dial button pressed event.

Change-Id: I96303bcc5fa2e21b8d8bbb8cb7f7bdb53cd86265
CRs-Fixed: 1085855
parent e50d48b5
Loading
Loading
Loading
Loading
+11 −10
Original line number Diff line number Diff line
@@ -2057,7 +2057,8 @@ public class DialpadFragment extends Fragment
            requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},
                    PERMISSION_REQUEST_CODE_LOCATION);
        } else {
            if(WifiCallUtils.shallShowWifiCallDialog(getActivity())) {
            if (!PhoneNumberUtils.isEmergencyNumber(mDigits.getText().toString()) &&
                    WifiCallUtils.shallShowWifiCallDialog(getActivity())) {
                WifiCallUtils.showWifiCallDialog(getActivity());
                WifiCallUtils.showWifiCallNotification(getActivity());
            } else {