Skip to content

Commit

Permalink
Merge pull request #66 from damontecres/bug/add-first-tag
Browse files Browse the repository at this point in the history
Ensure tags/performers are shown after adding the first
  • Loading branch information
damontecres authored Jan 25, 2024
2 parents 9eea1e8 + 6a8d214 commit ff9a048
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ class VideoDetailsFragment : DetailsSupportFragment() {
newTags?.first { it.id == tagId.toInt() }?.name
tagsAdapter.clear()
tagsAdapter.addAll(0, newTags)
mAdapter.set(
TAG_POS,
ListRow(HeaderItem(getString(R.string.stashapp_tags)), tagsAdapter),
)

Toast.makeText(
requireContext(),
Expand Down Expand Up @@ -188,6 +192,13 @@ class VideoDetailsFragment : DetailsSupportFragment() {
resultPerformers?.first { it.id == performerId }
performersAdapter.clear()
performersAdapter.addAll(0, resultPerformers)
mAdapter.set(
PERFORMER_POS,
ListRow(
HeaderItem(getString(R.string.stashapp_performers)),
performersAdapter,
),
)

Toast.makeText(
requireContext(),
Expand Down

0 comments on commit ff9a048

Please sign in to comment.