Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jhj0517 committed Apr 6, 2024
1 parent cf85745 commit 3c2493c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class TooltipView(

private fun initViews() {
_binding = ViewTooltipBinding.inflate(LayoutInflater.from(context), null, false)
// Bind your view with data class
binding.apply {
name.text = data.name
description.text = data.desc
Expand Down Expand Up @@ -98,7 +99,7 @@ class TooltipView(
// Binding to null when dismiss to avoid memory leak
tooltipWindow.setOnDismissListener {
_binding = null

// Dismiss check mark together
if(checkMarkWindow.isShowing){
checkMarkWindow.dismiss()
}
Expand Down

0 comments on commit 3c2493c

Please sign in to comment.