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

Commit a5d29971 authored by Craig Mautner's avatar Craig Mautner
Browse files

Disassociate system windows from apps

If an app launches a system window remove the app token.

Fixes bug 16825063.

Change-Id: I7c7403e0958f3cd9f6dd5e2964b2e9cabc51ded7
parent 015cb5dc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2305,6 +2305,10 @@ public class WindowManagerService extends IWindowManager.Stub
                            + attrs.token + ".  Aborting.");
                      return WindowManagerGlobal.ADD_BAD_APP_TOKEN;
                }
            } else if (token.appWindowToken != null) {
                Slog.i(TAG, "Non-null appWindowToken for system window of type=" + type);
                // app token should be null for any other window types.
                token.appWindowToken = null;
            }

            win = new WindowState(this, session, client, token,