Added profile's target BG in NSClient mode

This commit is contained in:
Roumen Georgiev 2017-12-05 09:23:57 +02:00 committed by GitHub
parent 6c714261d0
commit 5e597f03d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -976,7 +976,13 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
tempTargetView.setVisibility(View.VISIBLE);
}
if ((Config.NSCLIENT || Config.G5UPLOADER) && tempTarget == null) {
tempTargetView.setVisibility(View.GONE);
//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 ****