|
|
@@ -798,11 +798,13 @@ public class MyActivity extends BleProfileServiceReadyActivity implements Device |
|
|
|
if (isHistory) { |
|
|
|
showInfo(getString(R.string.history_data, bodyFatData.toString()), true); |
|
|
|
} else { |
|
|
|
//AicareBleConfig.getSportModeData(bodyFatData,user.getSex());//运动员需要进行第二次运算 |
|
|
|
showInfo(getString(R.string.body_fat_data, bodyFatData.toString()), true); |
|
|
|
seek_bar_weight.setProgress((int) (Double.valueOf(AicareBleConfig.getWeight(bodyFatData.getWeight(), AicareBleConfig.UNIT_KG, bodyFatData.getDecimalInfo())) * 10)); |
|
|
|
seek_bar_weight.setProgress((int) (Double.parseDouble(AicareBleConfig.getWeight(bodyFatData.getWeight(), AicareBleConfig.UNIT_KG, bodyFatData.getDecimalInfo())) * 10)); |
|
|
|
if (bodyFatData.getAdc() != 0) { |
|
|
|
seek_bar_adc.setProgress(bodyFatData.getAdc()); |
|
|
|
} |
|
|
|
|
|
|
|
boolean deviceConnected = isDeviceConnected(); |
|
|
|
if (deviceConnected) { |
|
|
|
if (binder != null && bodyFatData.getAdc() != 0) { |