removing the whole if() statement

This commit is contained in:
Roumen Georgiev 2017-12-07 17:11:54 +02:00 committed by GitHub
parent 5e597f03d0
commit 1d8dd5e35e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -975,15 +975,6 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
tempTargetView.setText(Profile.toTargetRangeString(profile.getTargetLow(), profile.getTargetHigh(), units, units)); tempTargetView.setText(Profile.toTargetRangeString(profile.getTargetLow(), profile.getTargetHigh(), units, units));
tempTargetView.setVisibility(View.VISIBLE); tempTargetView.setVisibility(View.VISIBLE);
} }
if ((Config.NSCLIENT || Config.G5UPLOADER) && tempTarget == null) {
//tempTargetView.setVisibility(View.GONE);
tempTargetView.setTextColor(Color.WHITE);
tempTargetView.setBackgroundColor(MainApp.sResources.getColor(R.color.tempTargetDisabledBackground));
if(Profile.toTargetRangeString(profile.getTargetLow(), profile.getTargetHigh(), units, units) != null) {
tempTargetView.setText(Profile.toTargetRangeString(profile.getTargetLow(), profile.getTargetHigh(), units, units));
} else tempTargetView.setText(getContext().getString(R.string.temptarget));
tempTargetView.setVisibility(View.VISIBLE);
}
// **** Temp button **** // **** Temp button ****
if (acceptTempLayout != null) { if (acceptTempLayout != null) {