Streetcomplete: TimePicker width is cut off in landscape mode

Created on 19 Oct 2018  路  4Comments  路  Source: westnordost/StreetComplete

When the app is in landscape mode, the time picker width is cut off, making it impossible to select a time (similarly to this Stackoverflow question)
How to Reproduce
Add steps to reproduce this behavior
Turn your phone in Landscape mode, select an Opening Hours quest, Select some weekday, the watch is not displayed correctly in either _opening_ or _closing time_ tabs
Versions affected
Android 7.1.1, Street Complete 8.2 and previous

bug help wanted

Most helpful comment

I checked if I could reproduce this on a Galaxy S6 running Android 7.0 and found a different but similar issue:

image

FWIW I ran into the same issue on Red Moon and decided not to fix it. The bug occurs in standard usage and is therefore an Android bug that should be fixed upstream, in my opinion.

If someone wanted to make a workaround, I think it would be better to write a TimePickerDialog library that works in landscape mode, rather than fixing it in each individual app.

All 4 comments

This is an Android bug (imo). I already noticed this months ago and tried to workaround this, also consulting stackoverflow, but did not succeed.

So, it is a known problem but can not be fixed.

Yes, it's an Android API bug, but it depends on how you use the TimePicker. The default AOSP calendar, for example, does not get cut off in landscape mode. I know they are not using a tabbed view, but maybe this could be useful? https://android.googlesource.com/platform/packages/apps/Calendar/+/master/src/com/android/calendar/event/EditEventView.java

screenshot for reference:
rps20181021_005119_990

I checked if I could reproduce this on a Galaxy S6 running Android 7.0 and found a different but similar issue:

image

FWIW I ran into the same issue on Red Moon and decided not to fix it. The bug occurs in standard usage and is therefore an Android bug that should be fixed upstream, in my opinion.

If someone wanted to make a workaround, I think it would be better to write a TimePickerDialog library that works in landscape mode, rather than fixing it in each individual app.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RubenKelevra picture RubenKelevra  路  4Comments

RubenKelevra picture RubenKelevra  路  3Comments

ltog picture ltog  路  4Comments

RubenKelevra picture RubenKelevra  路  3Comments

MattWhilden picture MattWhilden  路  3Comments