From 1abd4e7afbe52682e8964ab0e9c0b7cfbfff6db0 Mon Sep 17 00:00:00 2001 From: Yoshiki Iguchi Date: Wed, 23 Oct 2019 17:34:35 +0900 Subject: 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 --- .../android/systemui/statusbar/notification/InstantAppNotifier.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } } -- cgit v1.2.3-59-g8ed1b