New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 724503 link

Starred by 0 users

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Aug 2
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

We should only enable our BOOT_COMPLETED BroadcastReceiver when necessary

Project Member Reported by awdf@chromium.org, May 19 2017

Issue description

We use a BOOT_COMPLETED BroadcastReciever to detect when the user updates to O in order to initialize notification channels.

To avoid listening for boot completed when we don't need to, we could only enable it on O+ via the manifest 'enabled' property & a boolean in resources which overrides on 26+, and disable it when it's not needed any more via 
https://developer.android.com/reference/android/content/pm/PackageManager.html#setComponentEnabledSetting(android.content.ComponentName, int, int)
 
Status: WontFix (was: Assigned)
obsolete - we didn't actually end up using a BOOT_COMPLETED broadcast receiver to initialize channels (instead they are initialized on app startup & package replaced if they were not previously initialized).

Sign in to add a comment