diff options
| author | 2019-10-23 17:34:35 +0900 | |
|---|---|---|
| committer | 2019-10-23 17:35:57 +0900 | |
| commit | 1abd4e7afbe52682e8964ab0e9c0b7cfbfff6db0 (patch) | |
| tree | 82514912c6cdd94c5168e79e002f5efb2a5cf6d3 | |
| parent | 8e554f88855b8027e1ef7be0c958c18949094ca1 (diff) | |
Show instant app notifier for non-fullscreen activity
On the original Android, an instant app notifier shows only for
fullscreen and split-screen-secondary windowing modes.
This CL adds freeform windowing mode for ARC.
(manually cherry picked from commit
18aa4446bc049ae6592828f5f646ad421958208f in vendor/google_arc)
Bug: 127858333
Bug: 128961725
Bug: 123917211
Bug: 128877314
Test: manual (run an instant app and confirm a notification)
Change-Id: I3fdc8e5ccfae479082dc3fa287e0b77cbc1ecc4a
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/InstantAppNotifier.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/InstantAppNotifier.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/InstantAppNotifier.java index f284f737b26d..53fbe5b57d7e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/InstantAppNotifier.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/InstantAppNotifier.java @@ -17,6 +17,7 @@ package com.android.systemui.statusbar.notification; import static android.app.WindowConfiguration.ACTIVITY_TYPE_UNDEFINED; +import static android.app.WindowConfiguration.WINDOWING_MODE_FREEFORM; import static android.app.WindowConfiguration.WINDOWING_MODE_FULLSCREEN; import static android.app.WindowConfiguration.WINDOWING_MODE_SPLIT_SCREEN_PRIMARY; import static android.app.WindowConfiguration.WINDOWING_MODE_SPLIT_SCREEN_SECONDARY; @@ -155,7 +156,8 @@ public class InstantAppNotifier extends SystemUI focusedStack.configuration.windowConfiguration .getWindowingMode(); if (windowingMode == WINDOWING_MODE_FULLSCREEN - || windowingMode == WINDOWING_MODE_SPLIT_SCREEN_SECONDARY) { + || windowingMode == WINDOWING_MODE_SPLIT_SCREEN_SECONDARY + || windowingMode == WINDOWING_MODE_FREEFORM) { checkAndPostForStack(focusedStack, notifs, noMan, pm); } } |