adding the locking related menu buttons

This commit is contained in:
tibbi
2021-05-20 20:54:48 +02:00
parent 53182f0507
commit ae48ce07a3
3 changed files with 23 additions and 0 deletions

View File

@ -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
}