Skip to content

Commit 775e1fb

Browse files
jguegelnaveensingh
andauthored
Apply suggestions from code review
Co-authored-by: Naveen Singh <[email protected]>
1 parent 2d52389 commit 775e1fb

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8585
[#95]: https://github.com/FossifyOrg/File-Manager/issues/95
8686
[#104]: https://github.com/FossifyOrg/File-Manager/issues/104
8787

88-
8988
[Unreleased]: https://github.com/FossifyOrg/File-Manager/compare/1.2.3...HEAD
9089
[1.2.3]: https://github.com/FossifyOrg/File-Manager/compare/1.2.2...1.2.3
9190
[1.2.2]: https://github.com/FossifyOrg/File-Manager/compare/1.2.0...1.2.2

app/src/main/kotlin/org/fossify/filemanager/fragments/ItemsFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF
387387
}
388388

389389
if (it.isDirectory) {
390-
if (it.name.normalizeString().contains(normalizedText)) {
390+
if (it.name.normalizeString().contains(normalizedText, true)) {
391391
val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap(), false)
392392
if (fileDirItem != null) {
393393
files.add(fileDirItem)
@@ -396,7 +396,7 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF
396396

397397
files.addAll(searchFiles(text, it.absolutePath))
398398
} else {
399-
if (it.name.normalizeString().contains(normalizedText)) {
399+
if (it.name.normalizeString().contains(normalizedText, true)) {
400400
val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap(), false)
401401
if (fileDirItem != null) {
402402
files.add(fileDirItem)

app/src/main/kotlin/org/fossify/filemanager/fragments/RecentsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
245245
lastSearchedText = text
246246
val normalizedText = text.normalizeString()
247247
val filtered = filesIgnoringSearch.filter {
248-
it.mName.normalizeString().contains(normalizedText)
248+
it.mName.normalizeString().contains(normalizedText, true)
249249
}.toMutableList() as ArrayList<ListItem>
250250

251251
binding.apply {

0 commit comments

Comments
 (0)