absolute as percentage update

This commit is contained in:
AdrianLxM 2017-06-29 23:30:18 +02:00
parent 16e360f200
commit 6bbec3411a

View file

@ -273,7 +273,7 @@ public class TemporaryBasal implements Interval {
public String toStringShort() { public String toStringShort() {
if (isAbsolute) { if (isAbsolute) {
if(SP.getBoolean(R.string.key_danar_visualizeextendedaspercentage, false)){ if(SP.getBoolean(R.string.key_danar_visualizeextendedaspercentage, false) && SP.getBoolean(R.string.key_danar_useextended, false)){
Profile profile = MainApp.getConfigBuilder().getProfile(); Profile profile = MainApp.getConfigBuilder().getProfile();
if(profile != null) { if(profile != null) {
double basal = profile.getBasal(System.currentTimeMillis()); double basal = profile.getBasal(System.currentTimeMillis());