Skip to content

Visibility issues #5

@SwiftKayAndroid

Description

@SwiftKayAndroid

Change code to this in order to handle resetting tags after view was initialized but setTags originally contained an empty list

public void setTags(List<? extends Tag> tags, String separator) {
    if (tags.isEmpty()) {
        this.setVisibility(View.GONE);
        return;
    } else {

//If you initialized this originally with an empty list the above code made it GONE
//then if you try to set again it doesn't become visible without adding this snippet.
this.setVisibility(View.VISIBLE);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions