Fix: Force keyboard dismissal on non-touch devices (#13337)#13373
Fix: Force keyboard dismissal on non-touch devices (#13337)#13373KartikeyTripathi469 wants to merge 1 commit intoTeamNewPipe:devfrom
Conversation
|
@theimpulson Could you take a look at this? The regression was introduced in 2182ff1 / #13194 |
|
@KartikeyTripathi469 Please do not remove default PR template. |
|
I've reviewed commit 2182ff1 and confirmed it replaced RESULT_UNCHANGED_SHOWN with HIDE_NOT_ALWAYS to address the lint requirement in FeedGroupDialog.kt. However, HIDE_NOT_ALWAYS is ineffective on non-touch devices (Fire TV/D-Pad) because the system flags the initial focus as an explicit user action, causing the keyboard to persist. My proposed fix uses flag 0, which provides the necessary forced dismissal for all input types while remaining fully lint-compliant. |
Thanks, makes sense to me. However, please introduce a new constant and add a doc-comment explaining that, then use it. |
6042c00 to
0569607
Compare
|
something is wrong with your commit. The commit message is strange. Please have a look. |
0569607 to
3a7d68f
Compare
|
Hi Mentors, Apologies for the confusion. My local environment had an incorrect commit message during the previous amend due to a sync issue with the dev branch. I have now corrected the commit history to properly reflect the changes: Commit Message: Updated to 'Fix: Force keyboard dismissal on non-touch devices (D-Pad/Fire TV)'. Code: The requested CLEAR_SOFT_INPUT_FORCED constant and documentation are still included. The PR should now be clean and ready for review. Thank you for catching that! |
|
Hi @KartikeyTripathi469, can you also fill the PR template? |
This comment was marked as resolved.
This comment was marked as resolved.
3a7d68f to
0edf85c
Compare
|
I hope you're doing well. I just wanted to follow up on the PR I submitted earlier. Whenever you get some time, could you please review it? If everything looks good, could you please merge it as well? Let me know if any changes are needed from my side, and I would be happy to update it. Thanks! |
theimpulson
left a comment
There was a problem hiding this comment.
I see you have force pushed and overwritten your changes. Could you please restore the previous change?
0edf85c to
8107e02
Compare
|
My bad. I accidentally force pushed down that, which overwrote the changes while syncing my local environment. I have now restored the CLEAR_SOFT_INPUT_FORCED Constant and updated the hidekeyboard method. Thanks for the feedback. If everything looks good, could you please merge it as well? |
8107e02 to
54f9fd4
Compare
54f9fd4 to
36aedfa
Compare
What is it?
Description of the changes in your PR
CLEAR_SOFT_INPUT_FORCED(value0) inKeyboardUtil.javato replaceHIDE_NOT_ALWAYS.HIDE_NOT_ALWAYSineffective; using flag0ensures a forced dismissal while remaining lint-compliant.Fixes the following issue(s)
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts", and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.
Due diligence