Skip to content

Commit 8a71c60

Browse files
author
Christopher Banes
committed
Fix Text Showing on hidden LoadingLayout
1 parent 3571853 commit 8a71c60

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

library/src/com/handmark/pulltorefresh/library/internal/LoadingLayout.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,12 @@ private void setSubHeaderText(CharSequence label) {
350350
mSubHeaderText.setVisibility(View.GONE);
351351
} else {
352352
mSubHeaderText.setText(label);
353-
mSubHeaderText.setVisibility(View.VISIBLE);
353+
354+
// Only set it to Visible if we're GONE, otherwise VISIBLE will
355+
// be set soon
356+
if (View.GONE == mSubHeaderText.getVisibility()) {
357+
mSubHeaderText.setVisibility(View.VISIBLE);
358+
}
354359
}
355360
}
356361
}

0 commit comments

Comments
 (0)