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

Skip to content
Commit 16d90af8 authored by Matías Hernández's avatar Matías Hernández
Browse files

Properly distinguish origin of Zen Changes

Add entry points to NotificationManager and INotificationManager so that Settings and SystemUI can tag Zen operations as "fromUser" (apps cannot do this, except for setAutomaticZenRulke via the Condition.source field). Also update SystemUI callers to provide "fromUser == true" where it makes sense (which is almost everywhere).

This effectively separates the "System" and "User" origins (the former being reserved to changes that are not originated from the user, such as schedule-based rules starting or ending).

Bug: 308670715
Flag: ACONFIG android.app.modes_api DEVELOPMENT
Test: atest NotificationManagerServiceTest ZenModeHelperTest DefaultDeviceEffectsApplierTest
Change-Id: If1e74e7989697c3126fd50636347488bfe3cda51
parent 918378f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment