summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-08-07 00:28:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-08-06 23:54:36 +0000
commit660b6ef83695d181ac490e132ffa77085936b9b2 (patch)
tree9806ba9416d5f4dda91e5ccc334e39514ef0d848
parentf69842f0ec7912fd717868510a1901e20df22960 (diff)
parent4a852c1a75fd0270bb09451b12c50a6c720c0502 (diff)
Merge "Correctly transmit dialpad visibility to updateExtraButtonRow" into lmp-dev
-rw-r--r--InCallUI/src/com/android/incallui/CallButtonPresenter.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/InCallUI/src/com/android/incallui/CallButtonPresenter.java b/InCallUI/src/com/android/incallui/CallButtonPresenter.java
index a995042b3..15a64b63f 100644
--- a/InCallUI/src/com/android/incallui/CallButtonPresenter.java
+++ b/InCallUI/src/com/android/incallui/CallButtonPresenter.java
@@ -222,7 +222,7 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto
public void showDialpadClicked(boolean checked) {
Log.v(this, "Show dialpad " + String.valueOf(checked));
getUi().displayDialpad(checked /* show */, true /* animate */);
- updateExtraButtonRow();
+ updateExtraButtonRow(checked);
}
public void changeToVideoClicked() {
@@ -317,7 +317,7 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto
final boolean isGenericConference = call.can(CallCapabilities.GENERIC_CONFERENCE);
mShowGenericMerge = isGenericConference && canMerge;
mShowManageConference = (call.isConferenceCall() && !isGenericConference);
- updateExtraButtonRow();
+ updateExtraButtonRow(ui.isDialpadVisible());
}
private void updateVideoCallButtons() {
@@ -410,13 +410,14 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto
}
}
- private void updateExtraButtonRow() {
+ private void updateExtraButtonRow(boolean isDialpadVisible) {
final boolean showExtraButtonRow = (mShowGenericMerge || mShowManageConference) &&
- !getUi().isDialpadVisible();
+ !isDialpadVisible;
Log.d(this, "isGeneric: " + mShowGenericMerge);
Log.d(this, "mShowManageConference : " + mShowManageConference);
Log.d(this, "mShowGenericMerge: " + mShowGenericMerge);
+ Log.d(this, "isDialpadVisible: " + isDialpadVisible);
if (showExtraButtonRow) {
if (mShowGenericMerge) {
getUi().showGenericMergeButton();