Merge "Remove WMG#closeAll in WindowTokenClient" into sc-dev

This commit is contained in:
Charles Chen
2021-04-09 14:56:36 +00:00
committed by Android (Google) Code Review

View File

@@ -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");
});
}
}