mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
remember last created note type
This commit is contained in:
@ -72,4 +72,8 @@ class Config(context: Context) : BaseConfig(context) {
|
||||
var useIncognitoMode: Boolean
|
||||
get() = prefs.getBoolean(USE_INCOGNITO_MODE, false)
|
||||
set(useIncognitoMode) = prefs.edit().putBoolean(USE_INCOGNITO_MODE, useIncognitoMode).apply()
|
||||
|
||||
var lastCreatedNoteType: Int
|
||||
get() = prefs.getInt(LAST_CREATED_NOTE_TYPE, TYPE_TEXT)
|
||||
set(lastCreatedNoteType) = prefs.edit().putInt(LAST_CREATED_NOTE_TYPE, lastCreatedNoteType).apply()
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ const val LAST_USED_EXTENSION = "last_used_extension"
|
||||
const val LAST_USED_SAVE_PATH = "last_used_save_path"
|
||||
const val ENABLE_LINE_WRAP = "enable_line_wrap"
|
||||
const val USE_INCOGNITO_MODE = "use_incognito_mode"
|
||||
const val LAST_CREATED_NOTE_TYPE = "last_created_note_type"
|
||||
|
||||
// gravity
|
||||
const val GRAVITY_LEFT = 0
|
||||
|
Reference in New Issue
Block a user