Merge "Disassociate system windows from apps" into mnc-dr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
be6555105a
@@ -607,6 +607,19 @@ public abstract class Window {
|
|||||||
}
|
}
|
||||||
wp.setTitle(title);
|
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 {
|
} else {
|
||||||
if (wp.token == null) {
|
if (wp.token == null) {
|
||||||
wp.token = mContainer == null ? mAppToken : mContainer.mAppToken;
|
wp.token = mContainer == null ? mAppToken : mContainer.mAppToken;
|
||||||
|
|||||||
Reference in New Issue
Block a user