Skip to content

Remove usage of deprecated Notification.setListener(..) #8317

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

Merged
merged 1 commit into from
Jul 11, 2025

Conversation

jwren
Copy link
Member

@jwren jwren commented Jul 8, 2025

Also: cleanup of nullability parameters in FlutterMessages.java

Also: cleanup of nullability parameters in FlutterMessages.java
@jwren jwren requested a review from helin24 July 8, 2025 16:34
Notifications.Bus.notify(
new Notification(
FLUTTER_NOTIFICATION_GROUP_ID,
title,
message,
NotificationType.WARNING).setListener(NotificationListener.URL_OPENING_LISTENER), project);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is a listener already set for this without using the deprecated fn? Or are we deciding to not listen for URL opens?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack, I didn't see any negative effects on the core UX here of a user being exposed to the notification. If there is some piece I am missing we can prioritize and implement with non-deprecated APIs.

@Darrylwin
Copy link

good job bro. But U're sure this simple delete have not bad effect on the code by the way ?

@jwren jwren merged commit 79663b0 into flutter:master Jul 11, 2025
8 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.

3 participants