Loading core/java/android/view/Window.java +21 −8 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
core/java/android/view/Window.java +21 −8 Original line number Diff line number Diff line Loading @@ -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; Loading