what-the-bank/sources/com/scb/phone/view/custom/easycash/CustomCheckBox.java

35 lines
1011 B
Java

package com.scb.phone.view.custom.easycash;
import android.content.Context;
import android.util.AttributeSet;
import androidx.appcompat.widget.AppCompatButton;
import com.scb.phone.R;
import o.nMh;
/* loaded from: classes5.dex */
public class CustomCheckBox extends AppCompatButton {
public CustomCheckBox(Context context) {
super(context);
}
public CustomCheckBox(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
public CustomCheckBox(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
public void setSelectedState(boolean z) {
setTextColor(nMh.getColor(getContext(), z ? R.color.f13682131100876 : R.color.f2982131099805));
setSelected(z);
}
public void setEnableState(boolean z, boolean z2) {
if (!z) {
setTextColor(nMh.getColor(getContext(), z2 ? R.color.f2982131099805 : R.color.f3422131099850));
}
setEnabled(z2);
}
}