This commit is contained in:
lunaticbum 2026-02-24 13:30:16 +09:00
parent c80e173ad9
commit 768dd0ebf0
2 changed files with 5 additions and 9 deletions

View File

@ -213,7 +213,7 @@ class AppDrawerBottomSheet : BottomSheetDialogFragment() {
// 엔터키 입력 시 검색 실행
binding.searchInput.setOnKeyListener { _, keyCode, event ->
if (PrefBoolean.useQuickLaunch.get(false) && keyCode == KeyEvent.KEYCODE_ENTER && event.action == KeyEvent.ACTION_UP) {
if (keyCode == KeyEvent.KEYCODE_ENTER && event.action == KeyEvent.ACTION_UP) {
checkResult(binding.searchInput.text.toString())
true
} else {
@ -331,18 +331,15 @@ class AppDrawerBottomSheet : BottomSheetDialogFragment() {
else if (appCount == 1 && contactCount == 1) {
val appUsage = filteredApp?.clickCount ?: 0
val contactUsage = filteredContact?.touchCount ?: 0
// 더 많이 사용한 쪽을 실행 (사용 횟수가 같으면 앱을 우선순위로 두거나 함)
if (contactUsage > appUsage) {
launchContact(filteredContact)
} else {
launchApp(filteredApp)
}
}
// Case 4: 그 외 (결과가 없거나 여러 개인 경우) 구글 검색 실행
else {
// openSearchApps("https://www.google.com/search?q=${keyword}", "com.android.chrome")
askGemini(keyword)
openSearchApps("https://www.google.com/search?q=${keyword}", "com.android.chrome")
// openSearchApps("https://www.google.com/search?q=${URLEncoder.encode(keyword, "UTF-8")}")
// dismiss()
}
}

View File

@ -553,6 +553,7 @@ class TokiFragment : Fragment(), PagedTextViewInterface {
val nullCursor = PointerIcon.getSystemIcon(requireContext(), PointerIcon.TYPE_NULL)
binding.root.setPointerIcon(nullCursor)
loadLastInfo()
return binding.root
}
@ -572,9 +573,7 @@ class TokiFragment : Fragment(), PagedTextViewInterface {
override fun onStart() {
super.onStart()
val nullCursor = PointerIcon.getSystemIcon(requireContext(), PointerIcon.TYPE_NULL)
binding.root.setPointerIcon(nullCursor)
loadLastInfo()
}
override fun onResume() {