Skip to content

[Android] TimePicker Dialog doesn't update the layout when rotating the device with dialog open #31658

@dinisvieira

Description

@dinisvieira

Description

On Android when opening a TimePicker and "rotating" the device afterwards the Picker Dialog doesn't seem to "redraw" itself to the new screen dimensions.

I tried with different .Net MAUI 9 versions but they all seem to do this. (non-shell)

Opening Dialog in Portrait and rotating to Landscape afterwards:
Image

Opening Dialog in Landscape and rotating to Portrait afterwards:
Image

Steps to Reproduce

  1. Create an Empty MAUI App and add a TimePicker to the MainPage
  2. Run App and try opening Picker and rotating device afterwards.

Link to public reproduction project repository

No response

Version with bug

9.0.110 SR11

Is this a regression from previous behavior?

Not sure

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

In theory we could listen to the appropriate event and programmatically close and open the TimePicker when the user rotates the device.
But this is not ideal and depending on the TimePicker usage it could cause other issues.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions