show the folder name at search hint

This commit is contained in:
tibbi 2023-01-10 16:19:17 +01:00
parent aa58e5142f
commit fa49dd2664
2 changed files with 8 additions and 2 deletions

View file

@ -78,7 +78,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:8d0cd51dd8'
implementation 'com.github.SimpleMobileTools:Simple-Commons:7ec82ca93f'
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

@ -361,7 +361,13 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
else -> getHumanizedFilename(mPath)
}
//media_toolbar.title = if (mShowAll) resources.getString(R.string.all_folders) else dirName
val searchHint = if (mShowAll) {
getString(R.string.search)
} else {
getString(R.string.search_in_placeholder, dirName)
}
media_menu.updateHintText(searchHint)
if (!mShowAll) {
media_menu.toggleForceArrowBackIcon(true)
media_menu.onNavigateBackClickListener = {