Sort tags in metadata section
This commit is contained in:
parent
14256137e8
commit
d025ef11f8
1 changed files with 7 additions and 1 deletions
|
@ -26,6 +26,10 @@ import org.schabi.newpipe.util.NavigationHelper;
|
||||||
import org.schabi.newpipe.util.ShareUtils;
|
import org.schabi.newpipe.util.ShareUtils;
|
||||||
import org.schabi.newpipe.util.TextLinkifier;
|
import org.schabi.newpipe.util.TextLinkifier;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import icepick.State;
|
import icepick.State;
|
||||||
import io.reactivex.rxjava3.disposables.Disposable;
|
import io.reactivex.rxjava3.disposables.Disposable;
|
||||||
|
|
||||||
|
@ -208,7 +212,9 @@ public class DescriptionFragment extends BaseFragment {
|
||||||
final ItemMetadataTagsBinding itemBinding
|
final ItemMetadataTagsBinding itemBinding
|
||||||
= ItemMetadataTagsBinding.inflate(inflater, layout, false);
|
= ItemMetadataTagsBinding.inflate(inflater, layout, false);
|
||||||
|
|
||||||
for (final String tag : streamInfo.getTags()) {
|
final List<String> tags = new ArrayList<>(streamInfo.getTags());
|
||||||
|
Collections.sort(tags);
|
||||||
|
for (final String tag : tags) {
|
||||||
final Chip chip = (Chip) inflater.inflate(R.layout.chip,
|
final Chip chip = (Chip) inflater.inflate(R.layout.chip,
|
||||||
itemBinding.metadataTagsChips, false);
|
itemBinding.metadataTagsChips, false);
|
||||||
chip.setText(tag);
|
chip.setText(tag);
|
||||||
|
|
Loading…
Reference in a new issue