From b80fdde45fdee435aa3e55c185b5b0b509bd6741 Mon Sep 17 00:00:00 2001 From: Charles Chen Date: Wed, 2 Sep 2020 14:10:07 +0800 Subject: Remove addWindowTokenWithOptions Since WindowContext won't add WindowToken from the client side, addWindowTokenWithOption is no more needed. Also remove the logic to invoke removeWindowToken from the client side. Bug: 159767464 Bug: 153369119 Test: atest WindowManagerServiceTests WindowManagerPermissionTests Change-Id: Ib0c948dca223cf8d056865ce3a0d4adaef07d247 --- core/java/android/app/WindowTokenClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/java/android/app/WindowTokenClient.java') diff --git a/core/java/android/app/WindowTokenClient.java b/core/java/android/app/WindowTokenClient.java index 9092ef36deb6..29792ac47a36 100644 --- a/core/java/android/app/WindowTokenClient.java +++ b/core/java/android/app/WindowTokenClient.java @@ -44,8 +44,8 @@ public class WindowTokenClient extends IWindowToken.Stub { * Attaches {@code context} to this {@link WindowTokenClient}. Each {@link WindowTokenClient} * can only attach one {@link Context}. *

This method must be called before invoking - * {@link android.view.IWindowManager#addWindowTokenWithOptions(IBinder, int, int, Bundle, - * String)}.

+ * {@link android.view.IWindowManager#registerWindowContextListener(IBinder, int, int, + * Bundle, boolean)}.

* * @param context context to be attached * @throws IllegalStateException if attached context has already existed. -- cgit v1.2.3