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

v1 Date-time picker dailog orientation #679

Merged

Conversation

Anubhvv
Copy link
Collaborator

@Anubhvv Anubhvv commented Aug 22, 2024

Problem

The behavior of date-time picker dialog was not right on screen orientation change. In demo-app, it was closing the dialog.

Root cause

Dialog doesn't have a lifecycle like a fragment which can handle these changes on it's own.

Fix

Recreation of date-time picker dialog on orientation change
and also making sure date-time is saved and maintained across the changes.

Validations

(how the change was tested, including both manual and automated tests)

Screenshots

Before

time.date.picker.dialog.before.webm

After
dateTimeDialog After.webm

Pull request checklist

This PR has considered:

  • Light and Dark appearances
  • Automated Tests
  • Documentation and demo app examples
  • VoiceOver and Keyboard Accessibility
  • Internationalization and RTL layouts
  • Size classes and window sizes (notched devices, multitasking, different window sizes, etc)

@Anubhvv Anubhvv requested a review from a team as a code owner August 22, 2024 09:03
@Anubhvv Anubhvv merged commit f2b4e70 into microsoft:master Aug 23, 2024
1 of 2 checks passed
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.

2 participants