fix #105, allow changing the photo compression quality

This commit is contained in:
tibbi
2018-01-13 15:21:34 +01:00
parent d38eb229d7
commit a1865811a9
5 changed files with 67 additions and 1 deletions

View File

@ -85,4 +85,8 @@ class Config(context: Context) : BaseConfig(context) {
var savePhotoMetadata: Boolean
get() = prefs.getBoolean(SAVE_PHOTO_METADATA, true)
set(savePhotoMetadata) = prefs.edit().putBoolean(SAVE_PHOTO_METADATA, savePhotoMetadata).apply()
var photoQuality: Int
get() = prefs.getInt(PHOTO_QUALITY, 80)
set(photoQuality) = prefs.edit().putInt(PHOTO_QUALITY, photoQuality).apply()
}