diff options
author | Yorke Lee <yorkelee@google.com> | 2014-05-05 12:37:24 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-05-05 12:37:24 -0700 |
commit | 877ace10c8aac66798a42d74204032e518e31e49 (patch) | |
tree | 2bb298d9eac341b67b462fc594e706b9873450c0 /src/com/android/dialer/dialpad/DialpadFragment.java | |
parent | ec9a6feb3110fde5805f999a9666a18be82089c1 (diff) |
Allow configuration of dialpad buttons visibility
The overflow menu/add contact buttons should have their
visibility toggled based on whether or not the digits can be edited.
For InCallUI, since the digits are not editable, none of these
action buttons should ever show up.
Change-Id: I2ce982fb0e2f5993f291f00ec309d99b3ddddbe8
Diffstat (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index ce2db3c67..5de9ffdce 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -309,7 +309,7 @@ public class DialpadFragment extends Fragment mDigitsFilledByIntent = false; mDigits.setCursorVisible(false); mAddContactButton.setVisibility(View.INVISIBLE); - } else { + } else if (mDialpadView.canDigitsBeEdited()){ mAddContactButton.setVisibility(View.VISIBLE); } |