diff options
author | Chaohui Wang <chaohuiw@google.com> | 2022-03-27 10:51:36 +0000 |
---|---|---|
committer | Presubmit Automerger Backend <android-build-presubmit-automerger-backend@system.gserviceaccount.com> | 2022-03-27 10:51:36 +0000 |
commit | fb6234343dc0c6e9db9dde9f569c67e186206f3a (patch) | |
tree | 78bf566d0b6cb4babc4fe6fc01370c054f45acdc | |
parent | 07a58247ee93bb4f523da21cf2c8ae702a5e816b (diff) | |
parent | ca8878dd72a0a090ad672ea341232d65a0d01c2d (diff) | |
download | robolectric-shadows-fb6234343dc0c6e9db9dde9f569c67e186206f3a.tar.gz |
[automerge] Add new InsetsState parameter for dispatchResized API 2p: ca8878dd72
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/robolectric-shadows/+/17422927
Change-Id: I6abd747e3616b2aef5e9436cfcb0a15d0e4a91d5
-rw-r--r-- | shadows/framework/src/main/java/org/robolectric/shadows/ShadowViewRootImpl.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/shadows/framework/src/main/java/org/robolectric/shadows/ShadowViewRootImpl.java b/shadows/framework/src/main/java/org/robolectric/shadows/ShadowViewRootImpl.java index 5861db836..ad17119d4 100644 --- a/shadows/framework/src/main/java/org/robolectric/shadows/ShadowViewRootImpl.java +++ b/shadows/framework/src/main/java/org/robolectric/shadows/ShadowViewRootImpl.java @@ -11,10 +11,11 @@ import android.os.Looper; import android.util.MergedConfiguration; import android.view.Display; import android.view.IWindowSession; +import android.view.InsetsState; import android.view.ViewRootImpl; import android.view.WindowManager; import android.window.ClientWindowFrames; -import java.util.ArrayList; + import org.robolectric.RuntimeEnvironment; import org.robolectric.annotation.Implementation; import org.robolectric.annotation.Implements; @@ -23,6 +24,8 @@ import org.robolectric.annotation.Resetter; import org.robolectric.util.ReflectionHelpers; import org.robolectric.util.ReflectionHelpers.ClassParameter; +import java.util.ArrayList; + @Implements(value = ViewRootImpl.class, isInAndroidSdk = false) public class ShadowViewRootImpl { @@ -166,6 +169,7 @@ public class ShadowViewRootImpl { ClassParameter.from(ClientWindowFrames.class, clientWindowFrame), ClassParameter.from(boolean.class, true), ClassParameter.from(MergedConfiguration.class, new MergedConfiguration()), + ClassParameter.from(InsetsState.class, new InsetsState()), ClassParameter.from(boolean.class, false), ClassParameter.from(boolean.class, false), ClassParameter.from(int.class, 0), |