Skip to content

Commit

Permalink
Fix naming of previous PR
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Jun 2, 2023
1 parent 39871dd commit 57c9c8a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class MenuDrawerItemView @JvmOverloads constructor(
private val regular by lazy { ResourcesCompat.getFont(context, RCore.font.suisseintl_regular) }
private val medium by lazy { ResourcesCompat.getFont(context, RCore.font.suisseintl_medium) }

private var outdatedPasswordListener: (() -> Unit)? = null
private var outdatedPasswordClickListener: (() -> Unit)? = null

var badge: Int = 0
set(value) {
Expand Down Expand Up @@ -147,12 +147,12 @@ class MenuDrawerItemView @JvmOverloads constructor(

override fun setOnClickListener(onClickListener: OnClickListener?) {
binding.root.setOnClickListener {
if (isPasswordOutdated) outdatedPasswordListener?.invoke() else onClickListener?.onClick(it)
if (isPasswordOutdated) outdatedPasswordClickListener?.invoke() else onClickListener?.onClick(it)
}
}

fun setOnOutdatedPasswordClickListener(callback: () -> Unit) {
outdatedPasswordListener = callback
outdatedPasswordClickListener = callback
}

enum class SelectionStyle {
Expand Down

0 comments on commit 57c9c8a

Please sign in to comment.