From 6cf9610afbec56535d1fe6e2e44acca41dd16b93 Mon Sep 17 00:00:00 2001 From: McCal-Codes <175259256+McCal-Codes@users.noreply.github.com> Date: Mon, 21 Sep 2026 14:46:44 -0400 Subject: [PATCH] A renamed Chinese app answers to its pinyin in the App Library too Spotlight already tried the name Android gives it; the library's search only tried the name you chose. --- app/src/main/java/com/mccal/folio/AppLibrary.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/mccal/folio/AppLibrary.kt b/app/src/main/java/com/mccal/folio/AppLibrary.kt index 47ff5a5..d880375 100644 --- a/app/src/main/java/com/mccal/folio/AppLibrary.kt +++ b/app/src/main/java/com/mccal/folio/AppLibrary.kt @@ -80,7 +80,7 @@ internal fun AppLibrary( val text = query.trim() // A renamed app answers to both names here, the same as in Spotlight. state.apps.filter { (if (workSwitch) it.isWork == showWork else !(hasWork && it.isWork)) && - (it.label.contains(text, true) || it.systemLabel.contains(text, true) || Pinyin.matches(it.label, text)) && + (it.label.contains(text, true) || it.systemLabel.contains(text, true) || Pinyin.matches(it.label, text) || Pinyin.matches(it.systemLabel, text)) && (editing || it.id !in state.hiddenApps) } } // iOS-style App Library: category tiles while browsing; the A–Z list for search, hidden and editing.