} else {
String newFlags = removeFlag(inputFlag.getText().toString(), Site.FLAG_WATERFALL_AS_LIST);
inputFlag.setText(newFlags);
}
});
<BUG>checkBoxWaterfallAsGrid.setOncheckListener((checkBox, checked) -> {

if (checked) {
</BUG>
String newFlags = addFlag(inputFlag.getText().toString(), Site.FLAG_WATERFALL_AS_GRID);

} else {
checkBoxWaterfallAsGrid.setChecked(true);
String newFlags = addFlag(inputFlag.getText().toString(), Site.FLAG_WATERFALL_AS_GRID);
