Skip to content

Commit

Permalink
Fix Text Showing on hidden LoadingLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Banes committed Jan 8, 2013
1 parent 3571853 commit 8a71c60
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,12 @@ private void setSubHeaderText(CharSequence label) {
mSubHeaderText.setVisibility(View.GONE);
} else {
mSubHeaderText.setText(label);
mSubHeaderText.setVisibility(View.VISIBLE);

// Only set it to Visible if we're GONE, otherwise VISIBLE will
// be set soon
if (View.GONE == mSubHeaderText.getVisibility()) {
mSubHeaderText.setVisibility(View.VISIBLE);
}
}
}
}
Expand Down

0 comments on commit 8a71c60

Please sign in to comment.