This commit is contained in:
androiddevkkotlin 2020-11-30 11:55:18 +02:00
parent ab29ae2403
commit 59132ccf6d

View file

@ -219,14 +219,12 @@ public class ElevationDateBottomSheet extends MenuBottomSheetDialogFragment {
private void enableDisableReliefButtons(boolean enable) {
for (BaseBottomSheetItem item : reliefFactorButtons) {
item.getView().setEnabled(enable);
TextView titleField = (TextView) item.getView().findViewById(R.id.title);
if (enable) {
titleField.setTextColor(checkedColor);
} else {
titleField.setTextColor(uncheckedColor);
}
item.getView().findViewById(R.id.compound_button).setEnabled(enable);
View view = item.getView();
view.setEnabled(enable);
view.findViewById(R.id.compound_button).setEnabled(enable);
TextView titleField = view.findViewById(R.id.title);
titleField.setTextColor(enable ? checkedColor : uncheckedColor);
}
}