Skip to content

Commit e099ba6

Browse files
authored
Update WidgetConfigureActivity.kt
1 parent 99abbda commit e099ba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/WidgetConfigureActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class WidgetConfigureActivity : SimpleActivity() {
104104

105105
if (mNotes.size == 1 && note == null) {
106106
note = mNotes.first()
107-
if (note.isBiometricLockUnavailable(this)) {
107+
if (note.shouldBeUnlocked(this)) {
108108
updateCurrentNote(note)
109109
} else {
110110
performSecurityCheck(
@@ -129,7 +129,7 @@ class WidgetConfigureActivity : SimpleActivity() {
129129
RadioGroupDialog(this, items, mCurrentNoteId.toInt()) {
130130
val selectedId = it as Int
131131
val note = mNotes.firstOrNull { it.id!!.toInt() == selectedId } ?: return@RadioGroupDialog
132-
if (note.protectionType == PROTECTION_NONE || note.isBiometricLockUnavailable(this)) {
132+
if (note.protectionType == PROTECTION_NONE || note.shouldBeUnlocked(this)) {
133133
updateCurrentNote(note)
134134
} else {
135135
performSecurityCheck(

0 commit comments

Comments
 (0)