WassimBenltaief/FlowLayout

Cannot set EmptyText

Closed this issue · 2 comments

public void setEmptyText(int mEmptyText) {
        this.mEmptyText = mEmptyText;
        inflateEmptyText();
    }

private void inflateEmptyText() {
        if (mEmptyText != R.string.text_empty) {
            if (mEmptyLayout != R.layout.layout_empty) {
                throw new RuntimeException("Cannot assign the EmptyText attribute. " +
                        "You already overridden the entire emptyLayout, no need to specify " +
                        "custom color or custom text message");
            } else {
                textEmpty.setText(getResources().getString(R.string.text_empty));
            }
        }
    }

Seems that the text is never set.

Please have a look her: #11

thank you for the pr. It fixes the issue.