mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
make the save success message optional
This commit is contained in:
@ -8,6 +8,10 @@ class Config(context: Context) : BaseConfig(context) {
|
||||
fun newInstance(context: Context) = Config(context)
|
||||
}
|
||||
|
||||
var displaySuccess: Boolean
|
||||
get() = prefs.getBoolean(DISPLAY_SUCCESS, true)
|
||||
set(displaySuccess) = prefs.edit().putBoolean(DISPLAY_SUCCESS, displaySuccess).apply()
|
||||
|
||||
var clickableLinks: Boolean
|
||||
get() = prefs.getBoolean(CLICKABLE_LINKS, false)
|
||||
set(clickableLinks) = prefs.edit().putBoolean(CLICKABLE_LINKS, clickableLinks).apply()
|
||||
|
@ -4,6 +4,7 @@ val NOTE_ID = "note_id"
|
||||
|
||||
// shared preferences
|
||||
val CURRENT_NOTE_ID = "current_note_id"
|
||||
val DISPLAY_SUCCESS = "display_success"
|
||||
val CLICKABLE_LINKS = "clickable_links"
|
||||
val WIDGET_NOTE_ID = "widget_note_id"
|
||||
val FONT_SIZE = "font_size"
|
||||
|
Reference in New Issue
Block a user