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

Commit be655510 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Android (Google) Code Review
Browse files

Merge "Disassociate system windows from apps" into mnc-dr-dev

parents 8d6d735f 20ebb4c2
Loading
Loading
Loading
Loading
+21 −8
Original line number Diff line number Diff line
@@ -607,6 +607,19 @@ public abstract class Window {
                }
                wp.setTitle(title);
            }
        } else if (wp.type >= WindowManager.LayoutParams.FIRST_SYSTEM_WINDOW &&
                wp.type <= WindowManager.LayoutParams.LAST_SYSTEM_WINDOW) {
            // We don't set the app token to this system window because the life cycles should be
            // independent. If an app creates a system window and then the app goes to the stopped
            // state, the system window should not be affected (can still show and receive input
            // events).
            if (curTitle == null || curTitle.length() == 0) {
                String title = "Sys" + Integer.toString(wp.type);
                if (mAppName != null) {
                    title += ":" + mAppName;
                }
                wp.setTitle(title);
            }
        } else {
            if (wp.token == null) {
                wp.token = mContainer == null ? mAppToken : mContainer.mAppToken;