inputGalleryUrl.setText(site.galleryUrl);
inputSearchUrl.setText(site.searchUrl);
inputLoginUrl.setText(site.loginUrl);
inputCookie.setText(site.cookie);
inputFlag.setText(site.flag);
<BUG>checkBoxWaterfallAsList.setChecked(site.hasFlag(Site.FLAG_WATERFALL_AS_LIST));

checkBoxWaterfallAsGrid.setChecked(site.hasFlag(Site.FLAG_WATERFALL_AS_GRID));
</BUG>
if (site.categories != null) {

inputGalleryUrl.setText(site.galleryUrl);
inputSearchUrl.setText(site.searchUrl);
inputLoginUrl.setText(site.loginUrl);
inputCookie.setText(site.cookie);
inputFlag.setText(site.flag);
checkBoxWaterfallAsList.post(() -> checkBoxWaterfallAsList.setChecked(site.hasFlag(Site.FLAG_WATERFALL_AS_LIST)));
checkBoxWaterfallAsGrid.post(() -> checkBoxWaterfallAsGrid.setChecked(site.hasFlag(Site.FLAG_WATERFALL_AS_GRID)));
if (site.categories != null) {
