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

Commit b16d06ab authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Dialer: Only when the phone state is idle, hide the dialpad chooser"

parents 36835138 c0fcf9b4
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -2056,12 +2056,14 @@ public class DialpadFragment extends AnalyticsFragment
        PhoneStateListener phoneStateListener = new PhoneStateListener(subId[0]) {
            @Override
            public void onCallStateChanged(int state, String incomingNumber) {
                if ((state == TelephonyManager.CALL_STATE_IDLE)
                if ((getActivity() != null) &&
                        (getTelephonyManager().getCallState() == TelephonyManager.CALL_STATE_IDLE)
                        && isDialpadChooserVisible()) {
                    showDialpadChooser(false);
                }
                if (state == TelephonyManager.CALL_STATE_IDLE
                        && getActivity() != null) {
                if ((getActivity() != null)
                        && (getTelephonyManager().getCallState()
                                == TelephonyManager.CALL_STATE_IDLE)) {
                    ((HostInterface) getActivity()).setConferenceDialButtonVisibility(true);
                }
            }