Added profile's target BG in NSClient mode
This commit is contained in:
parent
6c714261d0
commit
5e597f03d0
|
@ -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 ****
|
||||
|
|
Loading…
Reference in a new issue