From fa49dd266481f843adc1d141a30c3b20bab3e134 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 10 Jan 2023 16:19:17 +0100 Subject: [PATCH] show the folder name at search hint --- app/build.gradle | 2 +- .../gallery/pro/activities/MediaActivity.kt | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 121c8efb0..dd6868272 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt index 6d89e6f1d..716bfbb40 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt @@ -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 = {