1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-31 20:11:58 +02:00

use isVisible method

This commit is contained in:
OliE
2017-12-23 11:29:26 +01:00
parent e355ac845d
commit a4dde33de6

View File

@@ -344,7 +344,7 @@ public abstract class MeasurementView extends TableLayout {
}
public void setExpand(boolean state) {
if (state && measurementRow.getVisibility() == View.VISIBLE && evaluateSheet(new EvaluationSheet(getScaleUser(), dateTime), 0.0f) != null) {
if (state && isVisible() && evaluateSheet(new EvaluationSheet(getScaleUser(), dateTime), 0.0f) != null) {
evaluatorRow.setVisibility(View.VISIBLE);
} else {
evaluatorRow.setVisibility(View.GONE);