Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1abd4e7a authored by Yoshiki Iguchi's avatar Yoshiki Iguchi Committed by Tadashi G. Takaoka
Browse files

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
parent 8e554f88
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
                            }
                        }