diff options
| author | Charles Chen <charlesccchen@google.com> | 2021-04-09 21:20:22 +0800 |
|---|---|---|
| committer | Charles Chen <charlesccchen@google.com> | 2021-04-09 13:57:23 +0000 |
| commit | 024275505d342f2970c7719d43db8aa605409f1f (patch) | |
| tree | ebfc739f667e4c08a97fd116a6a5393f587b2f04 /core/java | |
| parent | c22aff4e4d4de8fcb95e1544db952aa1bdfd999a (diff) | |
Remove WMG#closeAll in WindowTokenClient
The non-activity window should be managed by the application itself.
Framework side doesn't need to handle it.
Also apps may remove the view after WMG#closeAll and cause
IllegalArgumentException "not attached to window manager".
Test: atest WindowContextTest
Test: atest WindowContextTests WindowContextPolicyTests
Bug: 183251523
Change-Id: I15ccb9a129f541f3be9733e8cd6121bb4c0fd6b8
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/window/WindowTokenClient.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/java/android/window/WindowTokenClient.java b/core/java/android/window/WindowTokenClient.java index b2fe4d9573f1..6abf5575d353 100644 --- a/core/java/android/window/WindowTokenClient.java +++ b/core/java/android/window/WindowTokenClient.java @@ -23,7 +23,6 @@ import android.content.Context; import android.content.res.Configuration; import android.os.Bundle; import android.os.IBinder; -import android.view.WindowManagerGlobal; import java.lang.ref.WeakReference; @@ -94,10 +93,5 @@ public class WindowTokenClient extends IWindowToken.Stub { context.destroy(); mContextRef.clear(); } - ActivityThread.currentActivityThread().getHandler().post(() -> { - // If the tracked window token is detached, release all views attached to this token. - WindowManagerGlobal.getInstance().closeAll(WindowTokenClient.this, - "#onWindowTokenRemoved()", "WindowTokenClient"); - }); } } |
