Loading res/layout/dialpad_fragment.xml +2 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,8 @@ android:layout_height="match_parent" android:orientation="vertical" > <!-- spacer view --> <Space <View android:id="@+id/spacer" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> Loading src/com/android/dialer/dialpad/DialpadFragment.java +14 −0 Original line number Diff line number Diff line Loading @@ -206,6 +206,8 @@ public class DialpadFragment extends Fragment private ToneGenerator mToneGenerator; private final Object mToneGeneratorLock = new Object(); private View mDialpad; private View mSpacer; /** * Set of dialpad keys that are currently being pressed */ Loading Loading @@ -428,6 +430,18 @@ public class DialpadFragment extends Fragment mDelete.setOnLongClickListener(this); } mSpacer = fragmentView.findViewById(R.id.spacer); mSpacer.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { if (isDigitsEmpty()) { hideAndClearDialpad(); return true; } return false; } }); mDialpad = fragmentView.findViewById(R.id.dialpad); // This is null in landscape mode. // In landscape we put the keyboard in phone mode. Loading Loading
res/layout/dialpad_fragment.xml +2 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,8 @@ android:layout_height="match_parent" android:orientation="vertical" > <!-- spacer view --> <Space <View android:id="@+id/spacer" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> Loading
src/com/android/dialer/dialpad/DialpadFragment.java +14 −0 Original line number Diff line number Diff line Loading @@ -206,6 +206,8 @@ public class DialpadFragment extends Fragment private ToneGenerator mToneGenerator; private final Object mToneGeneratorLock = new Object(); private View mDialpad; private View mSpacer; /** * Set of dialpad keys that are currently being pressed */ Loading Loading @@ -428,6 +430,18 @@ public class DialpadFragment extends Fragment mDelete.setOnLongClickListener(this); } mSpacer = fragmentView.findViewById(R.id.spacer); mSpacer.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { if (isDigitsEmpty()) { hideAndClearDialpad(); return true; } return false; } }); mDialpad = fragmentView.findViewById(R.id.dialpad); // This is null in landscape mode. // In landscape we put the keyboard in phone mode. Loading