private void a(e eVar) {
   C0596r.e("isManualSetWeight", this.q + a.f);
   C0596r.e(i, "weightadvdata " + eVar.toString());
   P p = new P();
   p.a = eVar;
   this.t = eVar.j();
   if (eVar.f() && eVar.d()) {
     this.t = 0.0f;
   }
   this.s.sendEmptyMessage(123);
   if (eVar.f() && !eVar.d()) {
     h = false;
     C0401a.a(this.p, C0401a.gk, C0401a.gm);
     UserInfo userInfo = new UserInfo();
     userInfo.name = Keeper.getCurrentUserInfoByTag(Keeper.CURRENT_USER_NAME);
     String currentUserInfoByTag = Keeper.getCurrentUserInfoByTag(Keeper.CURRENT_USER_GENDER);
     if (currentUserInfoByTag.isEmpty()) {
       userInfo.gender = 1;
     } else {
       userInfo.gender = Integer.parseInt(currentUserInfoByTag);
     }
     userInfo.birthday = Keeper.getCurrentUserInfoByTag(Keeper.CURRENT_USER_BIRTH);
     currentUserInfoByTag = Keeper.getCurrentUserInfoByTag(Keeper.CURRENT_USER_HEIGHT);
     if (currentUserInfoByTag.isEmpty()) {
       userInfo.height = 100;
     } else {
       userInfo.height = Integer.parseInt(currentUserInfoByTag);
     }
     userInfo.weight = aA.c(this.t, p.a.h(), 0);
     eVar.a(aA.a(userInfo.height, Birthday.fromStr(userInfo.birthday).getAge(), userInfo.weight));
     new f(this, userInfo, eVar).execute(new Void[0]);
   }
 }
 public void a(float f) {
   C0596r.e(i, "onWeightSelect " + f);
   e eVar = new e();
   eVar.b(aA.b(f, Keeper.readPersonInfo().miliConfig.weightUnit));
   eVar.a(Keeper.readPersonInfo().miliConfig.weightUnit);
   eVar.a(true);
   eVar.b(false);
   if (0 == this.v) {
     this.v = System.currentTimeMillis();
   }
   eVar.a(this.v);
   eVar.c(f);
   String currentUserInfoByTag = Keeper.getCurrentUserInfoByTag(Keeper.CURRENT_USER_BIRTH);
   String currentUserInfoByTag2 = Keeper.getCurrentUserInfoByTag(Keeper.CURRENT_USER_HEIGHT);
   int i = 100;
   if (!currentUserInfoByTag2.isEmpty()) {
     i = Integer.parseInt(currentUserInfoByTag2);
   }
   eVar.a(aA.a(i, Birthday.fromStr(currentUserInfoByTag).getAge(), f));
   a(eVar);
 }