react to HypoTT on first click

onClickListener, not OnCheckedListener was set for HypoTT
This commit is contained in:
AdrianLxM 2018-07-23 18:43:26 +02:00 committed by GitHub
parent 130fca4c2a
commit fa67aa69d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,7 +160,7 @@ public class NewCarbsDialog extends DialogFragment implements OnClickListener, C
startHypoTTCheckbox.setOnCheckedChangeListener(null);
startHypoTTCheckbox.setChecked(true);
}
startHypoTTCheckbox.setOnClickListener(this);
startHypoTTCheckbox.setOnCheckedChangeListener(this);
setCancelable(true);
getDialog().setCanceledOnTouchOutside(false);