Home > Mobile >  Android 7.0 calls, the lock screen is displayed when full screen interface, unlock is displayed when
Android 7.0 calls, the lock screen is displayed when full screen interface, unlock is displayed when

Time:09-17

As title, call in Android 7.0, the lock screen is displayed full screen interface, unlock is show that the suspension notice, is where do judgment?

CodePudding user response:

Is handled through the Notification itself, when create Notification Settings setCategory (Notification. CATEGORY_CALL),

CodePudding user response:

Alarm and call full-screen interface here are all through the following path to trigger a full screen interface
NotificationEntryManager. Java
Private void addNotificationInternal (StatusBarNotification notification,
NotificationListenerService. RankingMap ranking) throws InflationException {
The String key=notification. GetKey ();
.
Try {
EventLog. WriteEvent (EventLogTags SYSUI_FULLSCREEN_NOTIFICATION,
Key);
//by sending the call or alarm inform pendingintent send to notify the caller or alarm clock module display full screen interface, so
Notification. GetNotification (). FullScreenIntent. The send ();
ShadeEntry. NotifyFullScreenIntentLaunched ();
MMetricsLogger. Count (" note_fullscreen ", 1);
} the catch (PendingIntent CanceledException e) {
}
, more relevant SystemUI article, can see my blog, send person rose, the hand leaves lingering fragrance,
  • Related