summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Bird <sbird@cyngn.com>2016-02-03 10:46:44 -0800
committerRichard MacGregor <rmacgregor@cyngn.com>2016-04-08 10:42:50 -0700
commit57e3b009c05595617c068c1be0b3fa0a10817576 (patch)
tree0d1514d1578b1496cfa25f8410bdd93ed0626dd9 /src
parentfc97e72d5d8b7e785a49f9333e3497d14ee690bc (diff)
downloadandroid_packages_apps_PhoneCommon-57e3b009c05595617c068c1be0b3fa0a10817576.tar.gz
android_packages_apps_PhoneCommon-57e3b009c05595617c068c1be0b3fa0a10817576.tar.bz2
android_packages_apps_PhoneCommon-57e3b009c05595617c068c1be0b3fa0a10817576.zip
setOverflowMenuButton custom button placement
We need to move the default overflow button without being to disruptive to the common dialpad layout. Also, create way to force a PSTN call from an incall provider. Change-Id: I5cc7d372ff8e438a4a291f4296ac2a5da086b8c8
Diffstat (limited to 'src')
-rw-r--r--src/com/android/phone/common/dialpad/DialpadView.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/com/android/phone/common/dialpad/DialpadView.java b/src/com/android/phone/common/dialpad/DialpadView.java
index 3d17880..aae7a43 100644
--- a/src/com/android/phone/common/dialpad/DialpadView.java
+++ b/src/com/android/phone/common/dialpad/DialpadView.java
@@ -269,8 +269,7 @@ public class DialpadView extends LinearLayout {
public void setCanDigitsBeEdited(boolean canBeEdited) {
View deleteButton = findViewById(R.id.deleteButton);
deleteButton.setVisibility(canBeEdited ? View.VISIBLE : View.GONE);
- View overflowMenuButton = findViewById(R.id.dialpad_overflow);
- overflowMenuButton.setVisibility(canBeEdited ? View.VISIBLE : View.GONE);
+ mOverflowMenuButton.setVisibility(canBeEdited ? View.VISIBLE : View.GONE);
EditText digits = (EditText) findViewById(R.id.digits);
digits.setClickable(canBeEdited);
@@ -360,6 +359,14 @@ public class DialpadView extends LinearLayout {
return mOverflowMenuButton;
}
+ public void setOverflowMenuButton(ImageButton ib) {
+ if (ib != null) {
+ mOverflowMenuButton.setVisibility(View.GONE);
+ }
+ mOverflowMenuButton = ib;
+
+ }
+
/**
* Get the animation delay for the buttons, taking into account whether the dialpad is in
* landscape left-to-right, landscape right-to-left, or portrait.