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
This commit is contained in:
committed by
Tadashi G. Takaoka
parent
8e554f8885
commit
1abd4e7afb
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user