private void bX(int i, int i2) {
TextView textView = (TextView) this.cw.findViewById(i);
if (a.av == 2) {
if (a.ay == 67) {
if (i2 == 0) {
textView.setText("LO");
} else if (i2 == 63) {
textView.setText("HI");
} else if (i2 >= 12 && i2 <= 40) {
float f = (((float) (i2 - 12)) * 0.5f) + 15.5f;
if (this.cv != 1) {
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(f)) + this.cq.getString(2131034128));
return;
}
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(((f * 9.0f) / 5.0f) + 32.0f)) + this.cq.getString(2131034129));
}
} else if (a.ay == 147) {
if (i2 == 0) {
textView.setText("LO");
} else if (i2 == 30) {
textView.setText("HI");
} else if (i2 >= 1 && i2 <= 29) {
float f2 = (((float) (i2 - 1)) * 0.5f) + 16.0f;
if (this.cv != 1) {
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(f2)) + this.cq.getString(2131034128));
return;
}
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(((f2 * 9.0f) / 5.0f) + 32.0f)) + this.cq.getString(2131034129));
}
} else if (a.ay == -1) {
} else {
if (i2 == 0) {
textView.setText("LO");
} else if (i2 == 30) {
textView.setText("HI");
} else if (i2 >= 1 && i2 <= 29) {
float f3 = (((float) (i2 - 1)) * 0.5f) + 14.0f;
if (this.cv != 1) {
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(f3)) + this.cq.getString(2131034128));
return;
}
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(((f3 * 9.0f) / 5.0f) + 32.0f)) + this.cq.getString(2131034129));
}
}
} else if (a.ay == 17 || a.ay == 22) {
if (i2 == 0) {
textView.setText("LO");
} else if (i2 == 31) {
textView.setText("HI");
} else if (i2 >= 1 && i2 <= 28) {
float f4 = (((float) (i2 - 1)) * 0.5f) + 16.0f;
if (this.cv != 1) {
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(f4)) + this.cq.getString(2131034128));
return;
}
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(((f4 * 9.0f) / 5.0f) + 32.0f)) + this.cq.getString(2131034129));
}
} else if (a.ay == 33 || a.ay == 34 || a.ay == 38) {
if (i2 == 0) {
textView.setText("LO");
} else if (i2 == 255) {
textView.setText("HI");
} else {
float f5 = ((float) i2) * 0.5f;
if (this.cv != 1) {
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(f5)) + this.cq.getString(2131034128));
return;
}
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(((f5 * 9.0f) / 5.0f) + 32.0f)) + this.cq.getString(2131034129));
}
} else if (a.ay == 65) {
if (i2 == 0) {
textView.setText("LO");
} else if (i2 == 127) {
textView.setText("HI");
} else if (i2 >= 31 && i2 <= 59) {
float f6 = (((float) (i2 - 31)) * 0.5f) + 15.5f;
if (this.cv != 1) {
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(f6)) + this.cq.getString(2131034128));
return;
}
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(((f6 * 9.0f) / 5.0f) + 32.0f)) + this.cq.getString(2131034129));
}
} else if (a.ay == 128 || a.ay == 134 || a.ay == 137) {
if (i2 == 0) {
textView.setText("LO");
} else if (i2 == 30) {
textView.setText("HI");
} else if (i2 == 29) {
if (this.cv != 1) {
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(16.0f)) + this.cq.getString(2131034128));
return;
}
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(60.8f)) + this.cq.getString(2131034129));
} else if (i2 >= 1 && i2 <= 28) {
float f7 = (((float) (i2 - 1)) * 0.5f) + 17.0f;
if (this.cv != 1) {
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(f7)) + this.cq.getString(2131034128));
return;
}
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(((f7 * 9.0f) / 5.0f) + 32.0f)) + this.cq.getString(2131034129));
}
} else if (a.ay == -1) {
} else {
if (i2 == 0) {
textView.setText("LO");
} else if (i2 == 31) {
textView.setText("HI");
} else if (i2 >= 1 && i2 <= 29) {
float f8 = (((float) (i2 - 1)) * 0.5f) + 18.0f;
if (this.cv != 1) {
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(f8)) + this.cq.getString(2131034128));
return;
}
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(((f8 * 9.0f) / 5.0f) + 32.0f)) + this.cq.getString(2131034129));
} else if (i2 >= 32 && i2 <= 35) {
float f9 = (((float) (i2 - 32)) * 0.5f) + 16.0f;
if (this.cv != 1) {
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(f9)) + this.cq.getString(2131034128));
return;
}
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(((f9 * 9.0f) / 5.0f) + 32.0f)) + this.cq.getString(2131034129));
}
}
}
private void bY(int i, int i2) {
TextView textView = (TextView) this.cw.findViewById(i);
if (i2 == 0) {
textView.setText("LO");
} else if (i2 == 47) {
textView.setText("HI");
} else if (i2 >= 1 && i2 <= 46) {
float f = (((float) (i2 - 1)) * 0.5f) + 14.0f;
if (this.cv != 1) {
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(f)) + this.cq.getString(2131034128));
return;
}
textView.setText(String.format(Locale.US, "%.1f", Float.valueOf(((f * 9.0f) / 5.0f) + 32.0f)) + this.cq.getString(2131034129));
}
}