Fix
This commit is contained in:
parent
ab29ae2403
commit
59132ccf6d
1 changed files with 6 additions and 8 deletions
|
@ -219,14 +219,12 @@ public class ElevationDateBottomSheet extends MenuBottomSheetDialogFragment {
|
||||||
|
|
||||||
private void enableDisableReliefButtons(boolean enable) {
|
private void enableDisableReliefButtons(boolean enable) {
|
||||||
for (BaseBottomSheetItem item : reliefFactorButtons) {
|
for (BaseBottomSheetItem item : reliefFactorButtons) {
|
||||||
item.getView().setEnabled(enable);
|
View view = item.getView();
|
||||||
TextView titleField = (TextView) item.getView().findViewById(R.id.title);
|
view.setEnabled(enable);
|
||||||
if (enable) {
|
view.findViewById(R.id.compound_button).setEnabled(enable);
|
||||||
titleField.setTextColor(checkedColor);
|
|
||||||
} else {
|
TextView titleField = view.findViewById(R.id.title);
|
||||||
titleField.setTextColor(uncheckedColor);
|
titleField.setTextColor(enable ? checkedColor : uncheckedColor);
|
||||||
}
|
|
||||||
item.getView().findViewById(R.id.compound_button).setEnabled(enable);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue