Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fc352711 authored by Yuri Lin's avatar Yuri Lin
Browse files

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
parent 3a0d362b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment