make the save success message optional

This commit is contained in:
tibbi
2017-03-08 22:29:02 +01:00
parent 13d09de4be
commit ae4e811ab7
15 changed files with 49 additions and 13 deletions

View File

@ -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()

View File

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