Skip to content

Commit

Permalink
Fix clicking on containing/sub groups not working (#466)
Browse files Browse the repository at this point in the history
This PR fixes where clicking on a containing or sub group on the group
page would do nothing.
  • Loading branch information
damontecres authored Nov 17, 2024
1 parent 6809d49 commit 20f6d39
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import com.github.damontecres.stashapp.api.fragment.StudioData
import com.github.damontecres.stashapp.api.fragment.TagData
import com.github.damontecres.stashapp.data.DataType
import com.github.damontecres.stashapp.data.Group
import com.github.damontecres.stashapp.data.GroupRelationshipData
import com.github.damontecres.stashapp.data.OCounter
import com.github.damontecres.stashapp.data.Performer
import com.github.damontecres.stashapp.data.Scene
Expand Down Expand Up @@ -78,6 +79,11 @@ class StashItemViewClickListener(
intent.putDataType(DataType.GROUP)
intent.putExtra("group", Group(item))
context.startActivity(intent)
} else if (item is GroupRelationshipData) {
val intent = Intent(context, DataTypeActivity::class.java)
intent.putDataType(DataType.GROUP)
intent.putExtra("group", Group(item.group))
context.startActivity(intent)
} else if (item is MarkerData) {
val intent = Intent(context, PlaybackActivity::class.java)
intent.putDataType(DataType.MARKER)
Expand Down Expand Up @@ -113,7 +119,7 @@ class StashItemViewClickListener(
} else if (item is OCounter) {
actionListener!!.incrementOCounter(item)
} else {
Log.e(TAG, "Unknown item type: $item")
Log.e(TAG, "Unknown item type: ${item.javaClass}")
}
}

Expand Down

0 comments on commit 20f6d39

Please sign in to comment.