Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Fixed example project
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianEstrada committed Apr 18, 2018
1 parent 4193c2c commit dbdadb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,17 @@ class CustomFingerprintDialog(context: Context) : FingerprintAlertDialogBase(con
tvDescription.text = context.getString(R.string.fingerprintCustomDialogDescription)
tvSubtitle.text = context.getString(R.string.fingerprintCustomDialogSubtitle)
tvMessage.text = context.getString(R.string.fingerprintCustomDialogDefaultMessage)
btnUsePassword.text = context.getString(R.string.cancel)
btnCancel.text = context.getString(R.string.usePassword)
btnUsePassword.text = context.getString(R.string.usePassword)
btnCancel.text = context.getString(R.string.cancel)

btnCancel.setOnClickListener {
onCancelClicked()
}

btnUsePassword.setOnClickListener {
onUsePasswordBtnListener?.invoke()
}

}

override fun getDialogLayout(): Int {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class MainActivity : AppCompatActivity(), OnFingerprintDialogEventListener {
}
}
dialog.onUsePasswordBtnListener = {
Log.d(TAG, "onUsePasswordBtnListener")
dialog.dismiss()
}

Expand Down

0 comments on commit dbdadb2

Please sign in to comment.