Skip to content

Commit

Permalink
code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
LoxiaLiSA committed Aug 3, 2021
1 parent e2c5a02 commit 4214d29
Showing 1 changed file with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,18 @@ class PanelSwitchLayout : LinearLayout, ViewAssertion {
return
}

if (clickInterceptor?.intercept(v.id) != false) {
notifyViewClick(v)
val targetId = panelContainer.getPanelId(panelView)
if (panelId == targetId && panelView.isTriggerViewCanToggle() && panelView.isShowing()) {
checkoutKeyboard(false)
} else {
checkoutPanel(targetId)
}
preClickTime = currentTime
if (clickInterceptor?.intercept(v.id) == true) {
return
}

notifyViewClick(v)
val targetId = panelContainer.getPanelId(panelView)
if (panelId == targetId && panelView.isTriggerViewCanToggle() && panelView.isShowing()) {
checkoutKeyboard(false)
} else {
checkoutPanel(targetId)
}
preClickTime = currentTime
}
})
}
Expand Down

0 comments on commit 4214d29

Please sign in to comment.