Download notification: Fix a crash on O+.
When startForeground called with a cancelled notification update, startForeground() will be bypassed in DownloadForegroundServiceManager. startOrUpdateForegroundService(). This leads to an Android crash. Instead we need to create an dummy notification and still call startForeground() with it to avoid the crash. This dummy notification will be dropped immediately in DownloadNotificationService. Bug: 1121096 Change-Id: I0f68bff47403b7478f504af6ee03f154c727c82f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2436511 Commit-Queue: Xing Liu <xingliu@chromium.org> Reviewed-by:David Trainor <dtrainor@chromium.org> Cr-Commit-Position: refs/heads/master@{#811871}
Showing
Please register or sign in to comment