Skip to content

Commit

Permalink
[Feat]: 角色出演跳转错误修复
Browse files Browse the repository at this point in the history
  • Loading branch information
why committed Dec 10, 2023
1 parent f6e09f0 commit c837370
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class PersonOverviewAdapter(
RouteHelper.jumpMediaDetail(id)
}
},
clickPersonItem = {
RouteHelper.jumpPerson(it.id, false)
clickCharacterItem = {
RouteHelper.jumpPerson(it.id, true)
}
))
.addItemType(TYPE_OPUS, PersonOverviewOpusBinder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ import com.xiaoyv.widget.binder.BaseQuickDiffBindingAdapter
* @since 12/6/23
*/
class PersonOverviewCharacterBinder(
private val clickPersonItem: (CharacterEntity) -> Unit,
private val clickCharacterItem: (CharacterEntity) -> Unit,
private val clickMediaItem: (CharacterEntity) -> Unit,
) : BaseMultiItemAdapter.OnMultiItemAdapterListener<PersonOverviewAdapter.Item, BaseQuickBindingHolder<FragmentPersonOverviewListBinding>> {

private val itemAdapter by lazy {
ItemAdapter().apply {
setOnDebouncedChildClickListener(R.id.item_character, block = clickPersonItem)
setOnDebouncedChildClickListener(R.id.iv_avatar, block = clickPersonItem)
setOnDebouncedChildClickListener(R.id.item_character, block = clickCharacterItem)
setOnDebouncedChildClickListener(R.id.iv_avatar, block = clickCharacterItem)
setOnDebouncedChildClickListener(R.id.iv_cover, block = clickMediaItem)
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_summary.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
android:clickable="true"
android:focusable="true"
android:isScrollContainer="false"
android:lineSpacingMultiplier="1.25"
android:lineSpacingMultiplier="1.5"
android:padding="@dimen/ui_layout_margin"
android:textAppearance="?attr/textAppearanceBodyLarge"
android:textColor="?attr/colorOnSurface"
Expand Down

0 comments on commit c837370

Please sign in to comment.