mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
show the folder name at search hint
This commit is contained in:
parent
aa58e5142f
commit
fa49dd2664
2 changed files with 8 additions and 2 deletions
|
@ -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'
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue