Skip to content
Commit ea56bb08 authored by Hui Yu's avatar Hui Yu
Browse files

Add a flag byForegroundService to enqueueNotification() call.

This flag is passed to NotificationManagerService, the CallStyle check
will treat byForegroundService flag same as isFgs flag.

Only the ServiceRecord.postNotification() call at startForeground() call has
byForegroundService flag set to true.

Add a test case NotificationManagerServiceTest.java#checkCallStyleNotification_allowedForByForegroundService

Bug: 280003654
Test: atest NotificationManagerServiceTest.java#checkCallStyleNotification_allowedForByForegroundService

Change-Id: Ibe30526ac0ff52e2e4fe9bc846576509cdf78236
Merged-In: Ibe30526ac0ff52e2e4fe9bc846576509cdf78236
parent 40e4d9c7
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