remove duplicate code

This commit is contained in:
AdrianLxM 2017-01-19 21:53:08 +01:00
parent 88a1dcde51
commit 992d95744d

View file

@ -622,21 +622,6 @@ public class OverviewFragment extends Fragment {
});
tempTargetView.setLongClickable(true);
if (profile == null || !pump.isInitialized()) {
// disable all treatment buttons because we are not able to check constraints without profile
wizardButton.setVisibility(View.INVISIBLE);
treatmentButton.setVisibility(View.INVISIBLE);
return;
} else {
wizardButton.setVisibility(View.VISIBLE);
treatmentButton.setVisibility(View.VISIBLE);
}
// QuickWizard button
QuickWizard.QuickWizardEntry quickWizardEntry = getPlugin().quickWizard.getActive();
if (quickWizardEntry != null && lastBG != null && pump.isInitialized()) {