Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40b73ff8 authored by Eric Erfanian's avatar Eric Erfanian
Browse files

Revert "Fix color for disabled button in voice call."

This reverts commit 4af5facf.

Change-Id: I3d923cb1cdfb31aa9db4384d554fff3ecbfbe4aa
parent 06317159
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ 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;
@@ -123,6 +124,13 @@ 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();
  }