From 7feffc9f61bbc31edb71e42d23d321a623864723 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 20 Mar 2022 20:41:45 +0100 Subject: [PATCH] updating the placeholder text for Android R+ --- app/build.gradle | 2 +- .../gallery/pro/activities/MainActivity.kt | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 9eecdee93..4efa5f4bf 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -77,7 +77,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:bc91a15c8e' + implementation 'com.github.SimpleMobileTools:Simple-Commons:ae2488ff25' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.24' 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 8acd0d969..b804e27fe 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 @@ -1149,8 +1149,13 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { directories_empty_placeholder.text = getString(R.string.no_items_found) directories_empty_placeholder_2.beGone() } else if (dirs.isEmpty() && config.filterMedia == getDefaultFileFilter()) { - directories_empty_placeholder.text = getString(R.string.no_media_add_included) - directories_empty_placeholder_2.text = getString(R.string.add_folder) + if (isRPlus()) { + directories_empty_placeholder.text = getString(R.string.no_items_found) + directories_empty_placeholder_2.beGone() + } else { + directories_empty_placeholder.text = getString(R.string.no_media_add_included) + directories_empty_placeholder_2.text = getString(R.string.add_folder) + } directories_empty_placeholder_2.setOnClickListener { showAddIncludedFolderDialog {