updating the placeholder text for Android R+

This commit is contained in:
tibbi 2022-03-20 20:41:45 +01:00
parent f0a124b925
commit 7feffc9f61
2 changed files with 8 additions and 3 deletions

View file

@ -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'

View file

@ -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 {