diff options
| author | 2025-01-08 17:48:45 -0500 | |
|---|---|---|
| committer | 2025-01-09 17:55:07 -0500 | |
| commit | fc3527116a6a0d1eb5eeaa81c054a6ce83d5cc40 (patch) | |
| tree | 9634b54a92dd13735801ee68aad4f0c4344e7f16 /libs/androidfw/AssetsProvider.cpp | |
| parent | 3a0d362b48c503366327aa78ed8cb4284777ffdf (diff) | |
Optionally create package preferences in getNotificationChannels()
This behavior is to mimic existing behavior of getNotificationChannel(). In the (rare) case that an app requests a channel but the package preferences haven't been created yet, getNotificationChannel() would create it and the default channel if necessary. This change has getNotificationChannels() do so as well, but only when it's called via NotificationManager.getNotificationChannel.
Bug: 381131846
Test: NotificationManagerTest, PreferencesHelperTest
Flag: android.app.nm_binder_perf_cache_channels
Change-Id: I429ae8ac5e72878380399c81ebe6d5b73becd1ce
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions