diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt index 42ef17836..93887d220 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt @@ -82,7 +82,6 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { private var mStoredAnimateGifs = true private var mStoredCropThumbnails = true private var mStoredScrollHorizontally = true - private var mStoredShowMediaCount = true private var mStoredTextColor = 0 private var mStoredPrimaryColor = 0 @@ -174,10 +173,6 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { getRecyclerAdapter()?.updateCropThumbnails(config.cropThumbnails) } - if (mStoredShowMediaCount != config.showMediaCount) { - getRecyclerAdapter()?.updateShowMediaCount(config.showMediaCount) - } - if (mStoredScrollHorizontally != config.scrollHorizontally) { mLoadedInitialPhotos = false directories_grid.adapter = null @@ -332,7 +327,6 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { mStoredAnimateGifs = animateGifs mStoredCropThumbnails = cropThumbnails mStoredScrollHorizontally = scrollHorizontally - mStoredShowMediaCount = showMediaCount mStoredTextColor = textColor mStoredPrimaryColor = primaryColor } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt index 536b2fabb..84e089a88 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt @@ -650,7 +650,6 @@ class SettingsActivity : SimpleActivity() { put(ANIMATE_GIFS, config.animateGifs) put(CROP_THUMBNAILS, config.cropThumbnails) put(SHOW_THUMBNAIL_VIDEO_DURATION, config.showThumbnailVideoDuration) - put(SHOW_MEDIA_COUNT, config.showMediaCount) put(SCROLL_HORIZONTALLY, config.scrollHorizontally) put(ENABLE_PULL_TO_REFRESH, config.enablePullToRefresh) put(MAX_BRIGHTNESS, config.maxBrightness) @@ -704,6 +703,9 @@ class SettingsActivity : SimpleActivity() { put(EDITOR_BRUSH_HARDNESS, config.editorBrushHardness) put(EDITOR_BRUSH_SIZE, config.editorBrushSize) put(ALBUM_COVERS, config.albumCovers) + put(FOLDER_THUMBNAIL_STYLE, config.folderStyle) + put(FOLDER_MEDIA_COUNT, config.showFolderMediaCount) + put(LIMIT_FOLDER_TITLE, config.limitFolderTitle) } exportSettings(configItems) @@ -785,7 +787,6 @@ class SettingsActivity : SimpleActivity() { ANIMATE_GIFS -> config.animateGifs = value.toBoolean() CROP_THUMBNAILS -> config.cropThumbnails = value.toBoolean() SHOW_THUMBNAIL_VIDEO_DURATION -> config.showThumbnailVideoDuration = value.toBoolean() - SHOW_MEDIA_COUNT -> config.showMediaCount = value.toBoolean() SCROLL_HORIZONTALLY -> config.scrollHorizontally = value.toBoolean() ENABLE_PULL_TO_REFRESH -> config.enablePullToRefresh = value.toBoolean() MAX_BRIGHTNESS -> config.maxBrightness = value.toBoolean() @@ -838,6 +839,9 @@ class SettingsActivity : SimpleActivity() { EDITOR_BRUSH_COLOR -> config.editorBrushColor = value.toInt() EDITOR_BRUSH_HARDNESS -> config.editorBrushHardness = value.toString().toFloat() EDITOR_BRUSH_SIZE -> config.editorBrushSize = value.toString().toFloat() + FOLDER_THUMBNAIL_STYLE -> config.folderStyle = value.toInt() + FOLDER_MEDIA_COUNT -> config.showFolderMediaCount = value.toInt() + LIMIT_FOLDER_TITLE -> config.limitFolderTitle = value.toBoolean() ALBUM_COVERS -> { val existingCovers = config.parseAlbumCovers() val existingCoverPaths = existingCovers.map { it.path }.toMutableList() as ArrayList diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt index 67998cebc..08120ab54 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt @@ -46,7 +46,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList