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

Expect Dialog in common #632

Merged
merged 3 commits into from
Jul 18, 2023
Merged

Expect Dialog in common #632

merged 3 commits into from
Jul 18, 2023

Conversation

MatkovIvan
Copy link
Member

@MatkovIvan MatkovIvan commented Jul 11, 2023

Proposed Changes

  • Move only part of DialogProperties to common, it's not binary compatible, but it's source code compatible. It works because the code from common compiles as code substitution on each platform
  • Support DialogProperties.dismissOnBackPress flag in skiko implementation
  • Support DialogProperties.dismissOnClickOutside flag in skiko implementation

Testing

Test: try to use Dialog from common sourceset

Related PRs

@MatkovIvan MatkovIvan changed the base branch from jb-main to ivan.matkov/fix-multi-owner-input July 11, 2023 10:37
Base automatically changed from ivan.matkov/fix-multi-owner-input to jb-main July 12, 2023 07:23
@MatkovIvan MatkovIvan marked this pull request as ready for review July 14, 2023 08:40
@igordmn igordmn requested a review from m-sasha July 18, 2023 17:14
@MatkovIvan MatkovIvan merged commit d060e48 into jb-main Jul 18, 2023
@MatkovIvan MatkovIvan deleted the ivan.matkov/common-dialog branch July 18, 2023 20:25
copybara-service bot pushed a commit to androidx/androidx that referenced this pull request Jan 19, 2024
Dialog available on all platforms but currently has no shared API in common. Exposing android overloads with DialogProperties allow use it from the common source set and unblocks commonization of many material components.

Proposed changes:
- Move 'Dialog' and part of `DialogProperties` to common
- Add implementation for desktop. Escape is used for handling `dismissOnBackPress` flag

Upstreaming changes from JetBrains#632

Relnote: Added a new `DialogProperties` constructor without platform-specific parameters
Test: N/A
Change-Id: I45829f07645b4457e3f6cbdfe98b1a0d59bafdff
igordmn pushed a commit that referenced this pull request Jan 30, 2024
I think this line (1093) `.setContentIntent(notification.contentIntent)` is duplicated of line (1110).

## Proposed Changes

  -  Remove duplicate "setContentIntent"

## Testing

Test: None

This is an imported pull request from androidx#632.

Resolves #632
Github-Pr-Head-Sha: e6e09c7
GitOrigin-RevId: 7bb049d
Change-Id: If3db1141126dd700f5ecb60ce8e7344a888bfd84
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