summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Diego Vela <diegovela@google.com> 2021-10-06 01:42:44 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-10-06 01:42:44 +0000
commitdcbaaffe41696e1ccf6203bf512d2e9fe12b9246 (patch)
treefdf56e239b3b392d76c18d95b7a5830eb592cc44
parentc4f632ac9facd1abcd107c1914ba25ab9d1c3a46 (diff)
parent1d02377e00af2946b007ddda32f7b068b1b51801 (diff)
Merge "Update window-extensions aar." into sc-v2-dev
-rw-r--r--libs/WindowManager/Jetpack/src/androidx/window/extensions/WindowExtensionsImpl.java33
-rw-r--r--libs/WindowManager/Jetpack/window-extensions-release.aarbin18278 -> 18249 bytes
2 files changed, 10 insertions, 23 deletions
diff --git a/libs/WindowManager/Jetpack/src/androidx/window/extensions/WindowExtensionsImpl.java b/libs/WindowManager/Jetpack/src/androidx/window/extensions/WindowExtensionsImpl.java
index 990d7b6a0101..bdf703c9bd38 100644
--- a/libs/WindowManager/Jetpack/src/androidx/window/extensions/WindowExtensionsImpl.java
+++ b/libs/WindowManager/Jetpack/src/androidx/window/extensions/WindowExtensionsImpl.java
@@ -39,11 +39,12 @@ public class WindowExtensionsImpl implements WindowExtensions {
return 1;
}
- @Override
- public boolean isWindowLayoutComponentAvailable() {
- return true;
- }
-
+ /**
+ * Returns a reference implementation of {@link WindowLayoutComponent} if available,
+ * {@code null} otherwise. The implementation must match the API level reported in
+ * {@link WindowExtensions#getWindowLayoutComponent()}.
+ * @return {@link WindowLayoutComponent} OEM implementation
+ */
@Override
public WindowLayoutComponent getWindowLayoutComponent() {
if (mWindowLayoutComponent == null) {
@@ -58,24 +59,10 @@ public class WindowExtensionsImpl implements WindowExtensions {
}
/**
- * Returns {@code true} if {@link ActivityEmbeddingComponent} is present on the device,
- * {@code false} otherwise. If the component is not available the developer will receive a
- * single callback with empty data or default values where possible.
- */
- @Override
- public boolean isEmbeddingComponentAvailable() {
- return true;
- }
-
- /**
- * Returns the OEM implementation of {@link ActivityEmbeddingComponent} if it is supported on
- * the device. The implementation must match the API level reported in
- * {@link androidx.window.extensions.WindowExtensions}. An
- * {@link UnsupportedOperationException} will be thrown if the device does not support
- * Activity Embedding. Use
- * {@link WindowExtensions#isEmbeddingComponentAvailable()} to determine if
- * {@link ActivityEmbeddingComponent} is present.
- * @return the OEM implementation of {@link ActivityEmbeddingComponent}
+ * Returns a reference implementation of {@link ActivityEmbeddingComponent} if available,
+ * {@code null} otherwise. The implementation must match the API level reported in
+ * {@link WindowExtensions#getWindowLayoutComponent()}.
+ * @return {@link ActivityEmbeddingComponent} OEM implementation.
*/
@NonNull
public ActivityEmbeddingComponent getActivityEmbeddingComponent() {
diff --git a/libs/WindowManager/Jetpack/window-extensions-release.aar b/libs/WindowManager/Jetpack/window-extensions-release.aar
index 42e829e3e5ab..4f36c9c690c9 100644
--- a/libs/WindowManager/Jetpack/window-extensions-release.aar
+++ b/libs/WindowManager/Jetpack/window-extensions-release.aar
Binary files differ