mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-27 06:57:59 +01:00
removing some old editor related shared preferences
This commit is contained in:
parent
9b27a8fd75
commit
bc4b088569
3 changed files with 0 additions and 12 deletions
|
@ -689,8 +689,6 @@ class SettingsActivity : SimpleActivity() {
|
||||||
put(LAST_EDITOR_CROP_ASPECT_RATIO, config.lastEditorCropAspectRatio)
|
put(LAST_EDITOR_CROP_ASPECT_RATIO, config.lastEditorCropAspectRatio)
|
||||||
put(LAST_EDITOR_CROP_OTHER_ASPECT_RATIO_X, config.lastEditorCropOtherAspectRatioX)
|
put(LAST_EDITOR_CROP_OTHER_ASPECT_RATIO_X, config.lastEditorCropOtherAspectRatioX)
|
||||||
put(LAST_EDITOR_CROP_OTHER_ASPECT_RATIO_Y, config.lastEditorCropOtherAspectRatioY)
|
put(LAST_EDITOR_CROP_OTHER_ASPECT_RATIO_Y, config.lastEditorCropOtherAspectRatioY)
|
||||||
put(LAST_EDITOR_DRAW_COLOR, config.lastEditorDrawColor)
|
|
||||||
put(LAST_EDITOR_BRUSH_SIZE, config.lastEditorBrushSize)
|
|
||||||
put(LAST_CONFLICT_RESOLUTION, config.lastConflictResolution)
|
put(LAST_CONFLICT_RESOLUTION, config.lastConflictResolution)
|
||||||
put(LAST_CONFLICT_APPLY_TO_ALL, config.lastConflictApplyToAll)
|
put(LAST_CONFLICT_APPLY_TO_ALL, config.lastConflictApplyToAll)
|
||||||
put(EDITOR_BRUSH_COLOR, config.editorBrushColor)
|
put(EDITOR_BRUSH_COLOR, config.editorBrushColor)
|
||||||
|
|
|
@ -475,14 +475,6 @@ class Config(context: Context) : BaseConfig(context) {
|
||||||
get() = prefs.getBoolean(ALLOW_ROTATING_WITH_GESTURES, true)
|
get() = prefs.getBoolean(ALLOW_ROTATING_WITH_GESTURES, true)
|
||||||
set(allowRotatingWithGestures) = prefs.edit().putBoolean(ALLOW_ROTATING_WITH_GESTURES, allowRotatingWithGestures).apply()
|
set(allowRotatingWithGestures) = prefs.edit().putBoolean(ALLOW_ROTATING_WITH_GESTURES, allowRotatingWithGestures).apply()
|
||||||
|
|
||||||
var lastEditorDrawColor: Int
|
|
||||||
get() = prefs.getInt(LAST_EDITOR_DRAW_COLOR, primaryColor)
|
|
||||||
set(lastEditorDrawColor) = prefs.edit().putInt(LAST_EDITOR_DRAW_COLOR, lastEditorDrawColor).apply()
|
|
||||||
|
|
||||||
var lastEditorBrushSize: Int
|
|
||||||
get() = prefs.getInt(LAST_EDITOR_BRUSH_SIZE, 50)
|
|
||||||
set(lastEditorBrushSize) = prefs.edit().putInt(LAST_EDITOR_BRUSH_SIZE, lastEditorBrushSize).apply()
|
|
||||||
|
|
||||||
var showNotch: Boolean
|
var showNotch: Boolean
|
||||||
get() = prefs.getBoolean(SHOW_NOTCH, true)
|
get() = prefs.getBoolean(SHOW_NOTCH, true)
|
||||||
set(showNotch) = prefs.edit().putBoolean(SHOW_NOTCH, showNotch).apply()
|
set(showNotch) = prefs.edit().putBoolean(SHOW_NOTCH, showNotch).apply()
|
||||||
|
|
|
@ -73,8 +73,6 @@ const val GROUP_DIRECT_SUBFOLDERS = "group_direct_subfolders"
|
||||||
const val SHOW_WIDGET_FOLDER_NAME = "show_widget_folder_name"
|
const val SHOW_WIDGET_FOLDER_NAME = "show_widget_folder_name"
|
||||||
const val ALLOW_ONE_TO_ONE_ZOOM = "allow_one_to_one_zoom"
|
const val ALLOW_ONE_TO_ONE_ZOOM = "allow_one_to_one_zoom"
|
||||||
const val ALLOW_ROTATING_WITH_GESTURES = "allow_rotating_with_gestures"
|
const val ALLOW_ROTATING_WITH_GESTURES = "allow_rotating_with_gestures"
|
||||||
const val LAST_EDITOR_DRAW_COLOR = "last_editor_draw_color"
|
|
||||||
const val LAST_EDITOR_BRUSH_SIZE = "last_editor_brush_size"
|
|
||||||
const val SHOW_NOTCH = "show_notch"
|
const val SHOW_NOTCH = "show_notch"
|
||||||
const val FILE_LOADING_PRIORITY = "file_loading_priority"
|
const val FILE_LOADING_PRIORITY = "file_loading_priority"
|
||||||
const val SPAM_FOLDERS_CHECKED = "spam_folders_checked"
|
const val SPAM_FOLDERS_CHECKED = "spam_folders_checked"
|
||||||
|
|
Loading…
Reference in a new issue