fixed typo in attribute

This commit is contained in:
Rainer-Lang 2017-04-22 12:23:24 +02:00 committed by GitHub
parent 1a831cd9db
commit f3780d3be9

View File

@ -28,7 +28,7 @@ public class StateLayout extends NestedScrollView {
private static final int SHOW_RELOAD_STATE = 4;
private static final int SHOW_EMPTY_STATE = 7;
private static final int HIDDEN = 5;
private static final int SHOWEN = 6;
private static final int SHOWN = 6;
private OnClickListener onReloadListener;
@BindView(R.id.empty_text) FontTextView emptyText;
@ -117,7 +117,7 @@ public class StateLayout extends NestedScrollView {
if (visibility == GONE || visibility == INVISIBLE) {
layoutState = HIDDEN;
} else {
layoutState = SHOWEN;
layoutState = SHOWN;
}
}
@ -165,7 +165,7 @@ public class StateLayout extends NestedScrollView {
case SHOW_EMPTY_STATE:
showEmptyState();
break;
case SHOWEN:
case SHOWN:
setVisibility(VISIBLE);
showReload(adapterSize);
break;