|
|
@@ -649,6 +649,7 @@ public class MyActivity extends BleProfileServiceReadyActivity implements Device |
|
|
|
public void onGetWeightData(final WeightData weightData) { |
|
|
|
if (weightData == null) |
|
|
|
return; |
|
|
|
L.i(TAG,"WeightData:"+weightData.toString()); |
|
|
|
setWeighDataText(AicareBleConfig.getWeight(weightData.getWeight(), unit, weightData.getDecimalInfo())); |
|
|
|
if (weightData.getTemp() != Double.MAX_VALUE) { |
|
|
|
tv_temp.setText(getString(R.string.temp, String.valueOf(weightData.getTemp()))); |
|
|
@@ -847,11 +848,11 @@ public class MyActivity extends BleProfileServiceReadyActivity implements Device |
|
|
|
showInfo(algorithmStr, true); |
|
|
|
if (user != null) { |
|
|
|
cn.net.aicare.algorithmutil.BodyFatData bodyFatData = AicareBleConfig |
|
|
|
.getBodyFatData(algorithmInfo.getAlgorithmId(), user.getSex(), user.getAge(), Double.valueOf(ParseData.getKgWeight(user.getWeight(), algorithmInfo.getDecimalInfo())), user |
|
|
|
.getBodyFatData(algorithmInfo.getAlgorithmId(), user.getSex(), user.getAge(), Double.parseDouble(ParseData.getKgWeight(algorithmInfo.getWeight(), algorithmInfo.getDecimalInfo())), user |
|
|
|
.getHeight(), algorithmInfo.getAdc()); |
|
|
|
BodyFatData bodyFatData1 = new BodyFatData(); |
|
|
|
bodyFatData1.setAge(user.getAge()); |
|
|
|
bodyFatData1.setWeight(user.getWeight()); |
|
|
|
bodyFatData1.setWeight(algorithmInfo.getWeight()); |
|
|
|
bodyFatData1.setSex(user.getSex()); |
|
|
|
bodyFatData1.setHeight(user.getHeight()); |
|
|
|
bodyFatData1.setAdc(algorithmInfo.getAdc()); |