mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-21 02:50:07 +01:00
show the notes content if it gets unlocked
This commit is contained in:
parent
ea22778f1a
commit
8e09ac7c99
@ -1084,6 +1084,10 @@ class MainActivity : SimpleActivity() {
|
||||
mCurrentNote.protectionHash = ""
|
||||
mCurrentNote.protectionType = PROTECTION_NONE
|
||||
NotesHelper(this).insertOrUpdateNote(mCurrentNote) {
|
||||
getCurrentFragment()?.apply {
|
||||
shouldShowLockedContent = true
|
||||
checkLockState()
|
||||
}
|
||||
invalidateOptionsMenu()
|
||||
}
|
||||
}
|
||||
|
@ -14,8 +14,8 @@ import com.simplemobiletools.notes.pro.models.Note
|
||||
import kotlinx.android.synthetic.main.fragment_checklist.view.*
|
||||
|
||||
abstract class NoteFragment : Fragment() {
|
||||
protected var shouldShowLockedContent = false
|
||||
protected var note: Note? = null
|
||||
var shouldShowLockedContent = false
|
||||
|
||||
protected fun setupLockedViews(view: ViewGroup, note: Note) {
|
||||
view.apply {
|
||||
|
Loading…
x
Reference in New Issue
Block a user