Skip to content

Commit 8e09ac7

Browse files
committed
show the notes content if it gets unlocked
1 parent ea22778 commit 8e09ac7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,10 @@ class MainActivity : SimpleActivity() {
10841084
mCurrentNote.protectionHash = ""
10851085
mCurrentNote.protectionType = PROTECTION_NONE
10861086
NotesHelper(this).insertOrUpdateNote(mCurrentNote) {
1087+
getCurrentFragment()?.apply {
1088+
shouldShowLockedContent = true
1089+
checkLockState()
1090+
}
10871091
invalidateOptionsMenu()
10881092
}
10891093
}

app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/NoteFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import com.simplemobiletools.notes.pro.models.Note
1414
import kotlinx.android.synthetic.main.fragment_checklist.view.*
1515

1616
abstract class NoteFragment : Fragment() {
17-
protected var shouldShowLockedContent = false
1817
protected var note: Note? = null
18+
var shouldShowLockedContent = false
1919

2020
protected fun setupLockedViews(view: ViewGroup, note: Note) {
2121
view.apply {

0 commit comments

Comments
 (0)