MM2-0 / Kvaesitso

A search-focused Android launcher
https://kvaesitso.mm20.de/
GNU General Public License v3.0
2.05k stars 59 forks source link

Search bar does not update on typed text #818

Open chaptergy opened 1 month ago

chaptergy commented 1 month ago

Sometimes when I open the search and start typing, the typed letters do not show up in the search bar and the apps are not filtered either. It seems the typed text is just ignored. Unfortunately I can't really see a pattern when it happens, it seems to happen after I haven't used the phone for a few hours. So there is no specific way to consistently reproduce this issue for me. Swiping back to the widget screen and opening the app drawer once again fixes this problem. I have it set so the keyboard is automatically opened when opening the app drawer, maybe that has something to do with it. The Autocorrect bar of the keyboard does update with suggestions based on what I typed, so something seems to happen, but it is just not reflected in the Kvaesitso UI.

Also I think it might be related or the same issue as https://github.com/MM2-0/Kvaesitso/issues/721, but since that ticket is a bit vague in the title and mostly in French, I thought it would be better to open a new ticket. But this is not about some characters not being able to be typed, but no character at all being added to the input, even latin characters. So just like https://github.com/MM2-0/Kvaesitso/issues/721#issuecomment-2103380924, but even without switching keyboards, simply by just opening the app drawer.

Edit: I just had the issue again after leaving an app and trying to search for a different one. It seems the visibility is not set correctly:

Logs ``` Device: panther SDK version: 34 ==================================== 05-10 11:58:19.514 16103 16103 D VRI[LauncherActivity]: visibilityChanged oldVisibility=true newVisibility=false 05-10 11:58:19.539 16103 16103 D VRI[LauncherActivity]: Not drawing due to not visible 05-10 11:58:56.569 16103 16103 W WindowOnBackDispatcher: OnBackInvokedCallback is not enabled for the application. 05-10 11:58:56.569 16103 16103 W WindowOnBackDispatcher: Set 'android:enableOnBackInvokedCallback="true"' in the application manifest. 05-10 11:58:56.592 16103 16103 D VRI[LauncherActivity]: Start draw after previous draw not visible 05-10 11:58:57.291 16103 16103 I ImeTracker: de.mm20.launcher2.release:27ac442b: onRequestShow at ORIGIN_CLIENT_SHOW_SOFT_INPUT reason SHOW_SOFT_INPUT_BY_INSETS_API 05-10 11:58:57.292 16103 16103 D InsetsController: show(ime(), fromIme=false) 05-10 11:58:57.292 16103 16103 I ImeTracker: de.mm20.launcher2.release:27ac442b: onFailed at PHASE_CLIENT_REQUEST_IME_SHOW 05-10 11:58:57.368 16103 16103 I ImeTracker: de.mm20.launcher2.release:6b8d4f42: onRequestShow at ORIGIN_CLIENT_SHOW_SOFT_INPUT reason SHOW_SOFT_INPUT_BY_INSETS_API 05-10 11:58:57.368 16103 16103 D InsetsController: show(ime(), fromIme=false) 05-10 11:58:57.368 16103 16103 D InputMethodManager: showSoftInput() view=androidx.compose.ui.platform.AndroidComposeView{1a2a046 VFED..... .F....ID 0,0-1080,2400 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT_BY_INSETS_API 05-10 11:58:57.405 16103 16103 I ImeTracker: de.mm20.launcher2.release:7c036859: onRequestShow at ORIGIN_CLIENT_SHOW_SOFT_INPUT reason SHOW_SOFT_INPUT 05-10 11:58:57.405 16103 16103 D InputMethodManager: showSoftInput() view=androidx.compose.ui.platform.AndroidComposeView{1a2a046 VFED..... .F...... 0,0-1080,2400 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT 05-10 11:58:57.498 16103 16103 I ImeTracker: de.mm20.launcher2.release:f0aee76b: onRequestShow at ORIGIN_CLIENT_SHOW_SOFT_INPUT reason SHOW_SOFT_INPUT_BY_INSETS_API 05-10 11:58:57.498 16103 16103 D InputMethodManager: showSoftInput() view=androidx.compose.ui.platform.AndroidComposeView{1a2a046 VFED..... .F...... 0,0-1080,2400 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT_BY_INSETS_API 05-10 11:58:57.644 16103 16103 D InsetsController: show(ime(), fromIme=true) 05-10 11:58:57.645 16103 16103 D InsetsController: show(ime(), fromIme=true) 05-10 11:58:57.645 16103 16103 I ImeTracker: de.mm20.launcher2.release:f0aee76b: onCancelled at PHASE_CLIENT_APPLY_ANIMATION 05-10 11:58:57.869 16103 16125 I de.mm20.launcher2.release: Background concurrent mark compact GC freed 82MB AllocSpace bytes, 0(0B) LOS objects, 75% free, 27MB/108MB, paused 1.627ms,1.115ms total 101.239ms 05-10 11:58:57.876 16103 16127 W System : A resource failed to call release. 05-10 11:58:57.980 16103 16103 I ImeTracker: de.mm20.launcher2.release:7c036859: onShown 05-10 11:59:04.902 16103 16103 W WindowOnBackDispatcher: OnBackInvokedCallback is not enabled for the application. 05-10 11:59:04.902 16103 16103 W WindowOnBackDispatcher: Set 'android:enableOnBackInvokedCallback="true"' in the application manifest. 05-10 11:59:04.974 16103 16103 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=ImeCallback=ImeOnBackInvokedCallback@216744053 Callback=android.window.IOnBackInvokedCallback$Stub$Proxy@bd748c8 05-10 11:59:04.993 16103 16103 W RemoteInputConnectionImpl: requestCursorUpdates on inactive InputConnection 05-10 11:59:04.995 16103 16103 I ImeTracker: de.mm20.launcher2.release:8066235c: onRequestHide at ORIGIN_CLIENT_HIDE_SOFT_INPUT reason HIDE_SOFT_INPUT_BY_INSETS_API 05-10 11:59:04.996 16103 16103 I ImeTracker: de.mm20.launcher2.release:e1f1cdf5: onRequestHide at ORIGIN_CLIENT_HIDE_SOFT_INPUT reason HIDE_SOFT_INPUT_BY_INSETS_API 05-10 11:59:04.996 16103 16103 I ImeTracker: de.mm20.launcher2.release:e1f1cdf5: onFailed at PHASE_CLIENT_VIEW_SERVED 05-10 11:59:04.999 16103 16103 I ImeTracker: de.mm20.launcher2.release:d11f345e: onCancelled at PHASE_CLIENT_APPLY_ANIMATION 05-10 11:59:05.014 16103 16103 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=ImeCallback=ImeOnBackInvokedCallback@216744053 Callback=android.window.IOnBackInvokedCallback$Stub$Proxy@bd748c8 05-10 11:59:05.024 16103 16103 I ImeTracker: de.mm20.launcher2.release:8066235c: onCancelled at PHASE_CLIENT_ANIMATION_CANCEL 05-10 11:59:05.024 16103 16103 I ImeTracker: de.mm20.launcher2.release:b9856aec: onRequestHide at ORIGIN_CLIENT_HIDE_SOFT_INPUT reason HIDE_SOFT_INPUT_BY_INSETS_API 05-10 11:59:05.025 16103 16103 I ImeTracker: de.mm20.launcher2.release:b9856aec: onFailed at PHASE_CLIENT_VIEW_SERVED 05-10 11:59:06.126 16103 16103 D CompatibilityChangeReporter: Compat change id reported: 232195501; UID 10214; state: DISABLED 05-10 11:59:06.149 16103 16103 I System.out: -0.0 05-10 11:59:06.211 16103 16103 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda11@5cb9bfd 05-10 11:59:06.214 16103 17435 D HWUI : endAllActiveAnimators on 0xb400c89365770800 (UnprojectedRipple) with handle 0xb400c7657677efc0 05-10 11:59:06.450 16103 16103 D VRI[LauncherActivity]: visibilityChanged oldVisibility=true newVisibility=false 05-10 11:59:06.467 16103 16103 D VRI[LauncherActivity]: Not drawing due to not visible 05-10 11:59:09.223 7126 7126 W libc : Access denied finding property "ro.debuggable" 05-10 11:59:09.216 7126 7126 W logcat : type=1400 audit(0.0:67709): avc: denied { read } for name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=435 scontext=u:r:untrusted_app:s0:c214,c256,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=de.mm20.launcher2.release ```

Edit 2: This seems to happen when you opened an app through the app drawer, and go back to the home screen. The app drawer is still open however the app seems to think it is not, so it does not update on keyboard input.

kurkii commented 1 month ago

Having the same issue, launching some apps then closing them seemed to fix the issue