Added lock

This commit is contained in:
tom5079
2019-06-23 10:27:07 +09:00
parent 6d1505241e
commit e01380090d
10 changed files with 325 additions and 17 deletions

View File

@@ -12,6 +12,7 @@ import kotlinx.android.synthetic.main.fragment_pattern_lock.*
import kotlinx.android.synthetic.main.fragment_pattern_lock.view.*
import xyz.quaver.pupil.R
import xyz.quaver.pupil.util.hash
import xyz.quaver.pupil.util.hashWithSalt
class PatternLockFragment : Fragment(), PatternLockViewListener {
@@ -32,7 +33,7 @@ class PatternLockFragment : Fragment(), PatternLockViewListener {
override fun onComplete(pattern: MutableList<PatternLockView.Dot>?) {
val password = PatternLockUtils.patternToMD5(lock_pattern_view, pattern)
onPatternDrawn?.invoke(hash(password))
onPatternDrawn?.invoke(password)
}
override fun onProgress(progressPattern: MutableList<PatternLockView.Dot>?) {