Merge "Fix the selected state of the mute icon is incorrect" into atel.lnx.2.0-dev
diff --git a/InCallUI/src/com/android/incallui/CallButtonFragment.java b/InCallUI/src/com/android/incallui/CallButtonFragment.java
index 83ad213..9c48a13 100644
--- a/InCallUI/src/com/android/incallui/CallButtonFragment.java
+++ b/InCallUI/src/com/android/incallui/CallButtonFragment.java
@@ -400,10 +400,13 @@
boolean isChecked = button.isChecked();
if (isChecked) Log.d(this, "updateColors: button:" + button + " is in checked state");
button.setChecked(false);
+ boolean isSelected = button.isSelected();
+ button.setSelected(false);
final LayerDrawable layers = (LayerDrawable) button.getBackground();
final RippleDrawable btnCompoundDrawable = compoundBackgroundDrawable(themeColors);
layers.setDrawableByLayerId(R.id.compoundBackgroundItem, btnCompoundDrawable);
button.setChecked(isChecked);
+ button.setSelected(isSelected);
button.requestLayout();
}