Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix keyboard not appearing in TimeRangePickerDialog (fixes #2799) #2820

Merged
merged 1 commit into from
Apr 28, 2021
Merged

Fix keyboard not appearing in TimeRangePickerDialog (fixes #2799) #2820

merged 1 commit into from
Apr 28, 2021

Conversation

tapetis
Copy link
Contributor

@tapetis tapetis commented Apr 28, 2021

As explained in the AlertDialog's Javadoc, the class normally automatically takes care of setting the WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM window flag by checking if the dialog's view contains an EditText. However, this does not seem to work with the TimePicker, which displays a clock dial by default. This PR fixes this problem by setting the correct window flags by hand. On my device, the keyboard can now be opened by clicking in the text fields.

@matkoniecz
Copy link
Member

I have never noticed that part of the interface :)

Tested, confirmed to be fixed, thanks for finding workaround! I would need like a month of work to discover that.

@matkoniecz matkoniecz merged commit 1fda71d into streetcomplete:master Apr 28, 2021
@westnordost
Copy link
Member

Wow, really cool that you found that!

@tapetis tapetis deleted the fix-time-keyboard branch April 28, 2021 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants