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

Commit 39fcd12c authored by Yorke Lee's avatar Yorke Lee
Browse files

Make dialpad slide down when dismissed by tapping outside

The dialpad currently simply disappears from view immediately when
dismissed by tapping in the space above it. instead, it should
slide downwards.

Change-Id: Idba1b8c6ccf40a6b12ea611d880e9f86183e6478
parent 468922c8
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -419,7 +419,7 @@ public class DialpadFragment extends Fragment
            @Override
            public boolean onTouch(View v, MotionEvent event) {
                if (isDigitsEmpty()) {
                    hideAndClearDialpad();
                    hideAndClearDialpad(true);
                    return true;
                }
                return false;
@@ -1059,11 +1059,11 @@ public class DialpadFragment extends Fragment

    public void callVoicemail() {
        startActivity(getVoicemailIntent());
        hideAndClearDialpad();
        hideAndClearDialpad(false);
    }

    private void hideAndClearDialpad() {
        ((DialtactsActivity) getActivity()).hideDialpadFragment(false, true);
    private void hideAndClearDialpad(boolean animate) {
        ((DialtactsActivity) getActivity()).hideDialpadFragment(animate, true);
    }

    public static class ErrorDialogFragment extends DialogFragment {
@@ -1158,7 +1158,7 @@ public class DialpadFragment extends Fragment
                        (getActivity() instanceof DialtactsActivity ?
                                ((DialtactsActivity) getActivity()).getCallOrigin() : null));
                startActivity(intent);
                hideAndClearDialpad();
                hideAndClearDialpad(false);
            }
        }
    }