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 onCheckedChanged(CompoundButton compoundButton, boolean z) { this.a.setEnabled(z); AlarmActivity.a(this.a, this.b.a.p); C0401a.a(this.b.a.p, C0401a.gx, z + a.f); C0596r.e("AlarmAdapter", "set clocks item:" + this.a.toJson()); this.b.notifyDataSetChanged(); new p(this.b.a.u, new C0807g(this, z)).f(); }
public void onClick(View view) { switch (view.getId()) { case R.id.search_devices_exit: setResult(-1); finish(); return; case R.id.left_button: C0596r.e(i, "click left btn"); return; case R.id.right_button: C0401a.a(this.p, C0401a.gk, C0401a.gl); c.showPanel( (Activity) this.p, G.a(this.r ? 8.0f : BitmapDescriptorFactory.HUE_YELLOW).getClass()); this.q = true; return; default: return; } }