aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaohui Wang <chaohuiw@google.com>2022-03-27 18:51:16 +0800
committerChaohui Wang <chaohuiw@google.com>2022-03-27 18:51:16 +0800
commitca8878dd72a0a090ad672ea341232d65a0d01c2d (patch)
tree78bf566d0b6cb4babc4fe6fc01370c054f45acdc
parent0d5b8d352a3799e2b371a8362ce903d330cf49f0 (diff)
downloadrobolectric-shadows-ca8878dd72a0a090ad672ea341232d65a0d01c2d.tar.gz
Add new InsetsState parameter for dispatchResized API
Because the interface changed in ag/17352245, we need to add new parameter for dispatchResized API. Test: Run Settings tests Fix: 227074828 Change-Id: I0807b30711d29de6a29f3f00f3cf8bbd5efb82c1
-rw-r--r--shadows/framework/src/main/java/org/robolectric/shadows/ShadowViewRootImpl.java6
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),