summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangqi <wangqi@google.com>2018-06-22 17:06:59 -0700
committerCopybara-Service <copybara-piper@google.com>2018-06-26 13:40:08 -0700
commit4af5facf5a45bb06beebdba790af2807c39e7649 (patch)
tree194d3e5268b2ec09da3780345235cdd6497cf25a
parentb394d18d9f75bb3a830a1da176b59dc8a96428c2 (diff)
Fix color for disabled button in voice call.
Bug: 79878432 Test: manual PiperOrigin-RevId: 201763780 Change-Id: I3ea0fb46c3904060927b68417699708d2e62b08a
-rw-r--r--java/com/android/incallui/incall/impl/CheckableLabeledButton.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/java/com/android/incallui/incall/impl/CheckableLabeledButton.java b/java/com/android/incallui/incall/impl/CheckableLabeledButton.java
index 4e8fa82c4..d4aba4c0b 100644
--- a/java/com/android/incallui/incall/impl/CheckableLabeledButton.java
+++ b/java/com/android/incallui/incall/impl/CheckableLabeledButton.java
@@ -39,7 +39,6 @@ import com.android.dialer.theme.base.ThemeComponent;
public class CheckableLabeledButton extends LinearLayout implements Checkable {
private static final int[] CHECKED_STATE_SET = {android.R.attr.state_checked};
- private static final float DISABLED_STATE_OPACITY = .3f;
private boolean broadcasting;
private boolean isChecked;
private OnCheckedChangeListener onCheckedChangeListener;
@@ -124,13 +123,6 @@ public class CheckableLabeledButton extends LinearLayout implements Checkable {
setOutlineProvider(null);
}
- @Override
- public void refreshDrawableState() {
- super.refreshDrawableState();
- iconView.setAlpha(isEnabled() ? 1f : DISABLED_STATE_OPACITY);
- labelView.setAlpha(isEnabled() ? 1f : DISABLED_STATE_OPACITY);
- }
-
public Drawable getIconDrawable() {
return iconView.getDrawable();
}