diff options
author | Qi Wang <wangqi@google.com> | 2016-02-26 14:50:45 -0800 |
---|---|---|
committer | Qi Wang <wangqi@google.com> | 2016-02-26 17:39:17 -0800 |
commit | 921c9a5139068df0d16cd35801f83bff9de32a02 (patch) | |
tree | 1dedfc1ec437c5166d6e2ae2102d30a5bfd6cdda /InCallUI/src/com/android/incallui/DialpadFragment.java | |
parent | 75b6512101760ae0ef8acfa028d243f9d1a75cff (diff) |
Add back button to dialpad in callui
Bug: 27231038
Change-Id: I721de663ae09489dd51cea0a70c5bca2d272fbf7
Diffstat (limited to 'InCallUI/src/com/android/incallui/DialpadFragment.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/DialpadFragment.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/DialpadFragment.java b/InCallUI/src/com/android/incallui/DialpadFragment.java index ae66a491f..ad288bdc6 100644 --- a/InCallUI/src/com/android/incallui/DialpadFragment.java +++ b/InCallUI/src/com/android/incallui/DialpadFragment.java @@ -323,6 +323,9 @@ public class DialpadFragment extends BaseFragment<DialpadPresenter, DialpadPrese }, ACCESSIBILITY_DTMF_STOP_DELAY_MILLIS); } } + if (v.getId() == R.id.dialpad_back) { + getActivity().onBackPressed(); + } } @Override @@ -437,6 +440,9 @@ public class DialpadFragment extends BaseFragment<DialpadPresenter, DialpadPrese mDtmfDialerField.setElegantTextHeight(false); configureKeypadListeners(); } + View backButton = mDialpadView.findViewById(R.id.dialpad_back); + backButton.setVisibility(View.VISIBLE); + backButton.setOnClickListener(this); return parent; } |