From f92c4962f50d5e847ed11f6ae72eb5acdbfb40c4 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 14 Oct 2022 21:40:46 +0200 Subject: [PATCH] minor code style formatting --- app/src/main/AndroidManifest.xml | 1 + .../gallery/pro/helpers/Config.kt | 18 ++++++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f895055ad..287ebbede 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -27,6 +27,7 @@ + diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Config.kt index a199602cd..72151b88d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Config.kt @@ -241,8 +241,13 @@ class Config(context: Context) : BaseConfig(context) { } } - private fun getDefaultDirectoryColumnCount() = context.resources.getInteger(if (scrollHorizontally) R.integer.directory_columns_horizontal_scroll - else R.integer.directory_columns_vertical_scroll) + private fun getDefaultDirectoryColumnCount() = context.resources.getInteger( + if (scrollHorizontally) { + R.integer.directory_columns_horizontal_scroll + } else { + R.integer.directory_columns_vertical_scroll + } + ) var mediaColumnCnt: Int get() = prefs.getInt(getMediaColumnsField(), getDefaultMediaColumnCount()) @@ -265,8 +270,13 @@ class Config(context: Context) : BaseConfig(context) { } } - private fun getDefaultMediaColumnCount() = context.resources.getInteger(if (scrollHorizontally) R.integer.media_columns_horizontal_scroll - else R.integer.media_columns_vertical_scroll) + private fun getDefaultMediaColumnCount() = context.resources.getInteger( + if (scrollHorizontally) { + R.integer.media_columns_horizontal_scroll + } else { + R.integer.media_columns_vertical_scroll + } + ) var albumCovers: String get() = prefs.getString(ALBUM_COVERS, "")!!