Depend on aars in prebuilts/sdk for window extensions

Bug: 276358138
Bug: 264962409
Test: build
Change-Id: I0364f902d664e185762b2b3523032efa0ce5636e
This commit is contained in:
Jiaming Liu
2023-04-04 22:06:17 +00:00
parent 2e0f3af103
commit 87017a6309
4 changed files with 2 additions and 26 deletions

View File

@@ -55,20 +55,6 @@ prebuilt_etc {
}
// Extensions
// NOTE: This module is still under active development and must not
// be used in production. Use 'androidx.window.sidecar' instead.
android_library_import {
name: "window-extensions",
aars: ["window-extensions-release.aar"],
sdk_version: "current",
}
android_library_import {
name: "window-extensions-core",
aars: ["window-extensions-core-release.aar"],
sdk_version: "current",
}
java_library {
name: "androidx.window.extensions",
srcs: [
@@ -77,8 +63,8 @@ java_library {
"src/androidx/window/common/**/*.java",
],
static_libs: [
"window-extensions",
"window-extensions-core",
"androidx.window.extensions_extensions-nodeps",
"androidx.window.extensions.core_core-nodeps",
],
installable: true,
sdk_version: "core_platform",

View File

@@ -122,16 +122,6 @@ public class WindowLayoutComponentImpl implements WindowLayoutComponent {
addWindowLayoutInfoListener(activity, extConsumer);
}
@Override
public void addWindowLayoutInfoListener(@NonNull @UiContext Context context,
@NonNull java.util.function.Consumer<WindowLayoutInfo> consumer) {
final Consumer<WindowLayoutInfo> extConsumer = consumer::accept;
synchronized (mLock) {
mJavaToExtConsumers.put(consumer, extConsumer);
}
addWindowLayoutInfoListener(context, extConsumer);
}
/**
* Similar to {@link #addWindowLayoutInfoListener(Activity, java.util.function.Consumer)}, but
* takes a UI Context as a parameter.