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

Notification decoration color for NotificationConfigurationBuilder() #1183

Closed
henrichg opened this issue Apr 6, 2023 · 4 comments
Closed

Comments

@henrichg
Copy link

henrichg commented Apr 6, 2023

Is possible to configure color for notification decoration?

For using it in Notiication.Builder.setColor().

https://developer.android.com/reference/android/app/Notification.Builder#setColor(int)

@henrichg
Copy link
Author

Please how to configure it?

My configuration:

new NotificationConfigurationBuilder()
                     .withChannelName(getString(R.string.notification_channel_crash_report))
                     .withChannelImportance(NotificationManager.IMPORTANCE_HIGH)
                     .withResIcon(R.drawable.ic_exclamation_notify)
                     .withTitle(getString(R.string.acra_notification_title))
                     .withText(getString(R.string.acra_notification_text))
                     .withResSendButtonIcon(0)
                     .withResDiscardButtonIcon(0)
                     .withSendOnClick(true)
                     .withEnabled(true)
                     .build(),

Exists witColor() method for this?

@F43nd1r
Copy link
Member

F43nd1r commented Apr 11, 2023

withColor will be in 5.9.8-beta02

@henrichg
Copy link
Author

Good thank you.

@henrichg
Copy link
Author

Tested and working. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants