fix:分类新增搜索功能-0516运营验收-客户端 https://jira.shanqu.cc/browse/GHZSCY-8001
This commit is contained in:
@ -290,7 +290,6 @@ class CategoryV2Fragment : LazyFragment() {
|
||||
mEntity?.run {
|
||||
viewModel.run {
|
||||
clearSelectedTag()
|
||||
childFragmentManager.fragments.find { it.isAdded }
|
||||
val targetFragment =
|
||||
if (hasSpecial && position == 1) {
|
||||
val fragment = childFragmentManager.findFragmentByTag(SpecialCatalogFragment::class.java.name)
|
||||
@ -319,7 +318,6 @@ class CategoryV2Fragment : LazyFragment() {
|
||||
)
|
||||
fragment
|
||||
}
|
||||
|
||||
childFragmentManager
|
||||
.beginTransaction()
|
||||
.replace(R.id.gamesContainer, targetFragment, targetFragment::class.java.name)
|
||||
|
||||
@ -166,7 +166,7 @@ class CategoryV2ViewModel : ViewModel() {
|
||||
if (position != oldPosition) {
|
||||
_selectedSidebarsPosition.value = position
|
||||
// 如果是点击搜索而被动切换到 “全部” tab,则这里不需要更新筛选条件
|
||||
if (triggerSearch && position != 1) {
|
||||
if (triggerSearch && position != INVALID_POSITION) {
|
||||
updateGameFiltered()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user