mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-13 19:27:33 +01:00
Xiaomi: fix for invalid birthdate being sent in user info
This commit is contained in:
parent
435d41aca0
commit
0378f48798
@ -230,7 +230,7 @@ public class XiaomiHealthService extends AbstractXiaomiService {
|
|||||||
final XiaomiProto.UserInfo userInfo = XiaomiProto.UserInfo.newBuilder()
|
final XiaomiProto.UserInfo userInfo = XiaomiProto.UserInfo.newBuilder()
|
||||||
.setHeight(activityUser.getHeightCm())
|
.setHeight(activityUser.getHeightCm())
|
||||||
.setWeight(activityUser.getWeightKg())
|
.setWeight(activityUser.getWeightKg())
|
||||||
.setBirthday(Integer.parseInt(String.format(Locale.ROOT, "%02d%02d%02d", birthYear, birthMonth, birthDay)))
|
.setBirthday(Integer.parseInt(String.format(Locale.ROOT, "%04d%02d%02d", birthYear, birthMonth, birthDay)))
|
||||||
.setGender(genderInt)
|
.setGender(genderInt)
|
||||||
.setMaxHeartRate(maxHeartRate)
|
.setMaxHeartRate(maxHeartRate)
|
||||||
.setGoalCalories(activityUser.getCaloriesBurntGoal())
|
.setGoalCalories(activityUser.getCaloriesBurntGoal())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user