Fixed
Status Update
Comments
vi...@google.com <vi...@google.com>
vi...@google.com <vi...@google.com> #2
Moving to Jetpack (androidx) > Core.
ki...@google.com <ki...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 8186599e9294f21244e010d298158bda2dfedde2
Author: Oussama Ben Abdelbaki <obenabde@google.com>
Date: Fri Apr 03 02:04:53 2020
Fix setChronometerCountDown crash bug
Needed to call getExtras() which initializes mExtras if null.
Bug: 145770610
Test: export to sample app and make sure there is no crash.
Test: add a one liner in tests and make sure no NPE.
Change-Id: I472824f0835988a38186318f2b3b49a00542da89
M core/core/src/androidTest/java/androidx/core/app/NotificationCompatTest.java
M core/core/src/main/java/androidx/core/app/NotificationCompat.java
https://android-review.googlesource.com/1193074
Branch: androidx-master-dev
commit 8186599e9294f21244e010d298158bda2dfedde2
Author: Oussama Ben Abdelbaki <obenabde@google.com>
Date: Fri Apr 03 02:04:53 2020
Fix setChronometerCountDown crash bug
Needed to call getExtras() which initializes mExtras if null.
Bug: 145770610
Test: export to sample app and make sure there is no crash.
Test: add a one liner in tests and make sure no NPE.
Change-Id: I472824f0835988a38186318f2b3b49a00542da89
M core/core/src/androidTest/java/androidx/core/app/NotificationCompatTest.java
M core/core/src/main/java/androidx/core/app/NotificationCompat.java
Description
- Relevant code to trigger the issue.
val builder= NotificationCompat.Builder(context, SNOOZING_CHANNEL_ID)
builder.setUsesChronometer(true)
builder.setChronometerCountDown(true) throws NPE
workaround:
call builder.addExtras(Bundle()) before builder.setChronometerCountDown(true)
Origin:
This bug is linked to: