mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
adding the locking related menu buttons
This commit is contained in:
@ -6,6 +6,7 @@ import androidx.room.ColumnInfo
|
||||
import androidx.room.Entity
|
||||
import androidx.room.Index
|
||||
import androidx.room.PrimaryKey
|
||||
import com.simplemobiletools.commons.helpers.PROTECTION_NONE
|
||||
import java.io.File
|
||||
|
||||
@Entity(tableName = "notes", indices = [(Index(value = ["id"], unique = true))])
|
||||
@ -34,4 +35,6 @@ data class Note(
|
||||
value
|
||||
}
|
||||
}
|
||||
|
||||
fun isLocked() = protectionType != PROTECTION_NONE
|
||||
}
|
||||
|
Reference in New Issue
Block a user