mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-04 17:37:25 +00:00
Fixed autolaunching
This commit is contained in:
parent
935293c8cb
commit
4eb3ccc2a4
1 changed files with 1 additions and 1 deletions
|
|
@ -884,7 +884,7 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
|||
}
|
||||
|
||||
private suspend fun applySearchFilter(newFilteredApps: MutableList<Triple<LauncherActivityInfo, UserHandle, Int>>) {
|
||||
if (menuView.displayedChild == 0 && appAdapter?.shortcutTextView == null && newFilteredApps.size == 1) {
|
||||
if (sharedPreferenceManager.isAutoLaunchEnabled() && menuView.displayedChild == 0 && appAdapter?.shortcutTextView == null && newFilteredApps.size == 1) {
|
||||
appUtils.launchApp(newFilteredApps[0].first.applicationInfo.packageName, newFilteredApps[0].second)
|
||||
} else if (!listsEqual(installedApps, newFilteredApps)) {
|
||||
updateMenu(newFilteredApps)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue