From 70bab107dc2016d5e95d9a09c8479b7ce690ff80 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 7 May 2014 11:29:41 -0700 Subject: Change selected/unselected states of buttons. - Add touch feedback (w00t). - Adjust button heights/positions to spec. - Add drawables for the different button states (no longer tabs). - Remove vertical spacers (interfered with touch feedback). Change-Id: I383ca898c8d2fcfc8c34021efc62cb03adbde1c1 --- InCallUI/src/com/android/incallui/CallButtonFragment.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'InCallUI/src/com/android/incallui/CallButtonFragment.java') diff --git a/InCallUI/src/com/android/incallui/CallButtonFragment.java b/InCallUI/src/com/android/incallui/CallButtonFragment.java index 2912ecefe..aa2dca784 100644 --- a/InCallUI/src/com/android/incallui/CallButtonFragment.java +++ b/InCallUI/src/com/android/incallui/CallButtonFragment.java @@ -50,7 +50,6 @@ public class CallButtonFragment private ImageButton mAddCallButton; private ImageButton mSwapButton; private ImageButton mAuxiliaryActionButton; - private View mAuxiliaryActionSpacer; private PopupMenu mAudioModePopup; private boolean mAudioModePopupVisible; @@ -133,7 +132,6 @@ public class CallButtonFragment mSwapButton.setOnClickListener(this); mAuxiliaryActionButton = (ImageButton) parent.findViewById(R.id.auxiliaryActionButton); mAuxiliaryActionButton.setOnClickListener(this); - mAuxiliaryActionSpacer = parent.findViewById(R.id.auxiliaryActionSpacer); return parent; } @@ -522,7 +520,6 @@ public class CallButtonFragment @Override public void updateAuxiliaryActionButton(boolean show, String description, Drawable drawable) { mAuxiliaryActionButton.setVisibility(show ? View.VISIBLE : View.GONE); - mAuxiliaryActionSpacer.setVisibility(show ? View.VISIBLE : View.GONE); if (show) { mAuxiliaryActionButton.setContentDescription(description); mAuxiliaryActionButton.setImageDrawable(drawable); -- cgit v1.2.3