diff options
author | Justin Klaassen <justinklaassen@google.com> | 2018-04-03 23:21:57 -0400 |
---|---|---|
committer | Justin Klaassen <justinklaassen@google.com> | 2018-04-03 23:21:57 -0400 |
commit | 4d01eeaffaa720e4458a118baa137a11614f00f7 (patch) | |
tree | 66751893566986236788e3c796a7cc5e90d05f52 /android/view/AttachInfo_Accessor.java | |
parent | a192cc2a132cb0ee8588e2df755563ec7008c179 (diff) | |
download | android-28-4d01eeaffaa720e4458a118baa137a11614f00f7.tar.gz |
Import Android SDK Platform P [4697573]
/google/data/ro/projects/android/fetch_artifact \
--bid 4697573 \
--target sdk_phone_armv7-win_sdk \
sdk-repo-linux-sources-4697573.zip
AndroidVersion.ApiLevel has been modified to appear as 28
Change-Id: If80578c3c657366cc9cf75f8db13d46e2dd4e077
Diffstat (limited to 'android/view/AttachInfo_Accessor.java')
-rw-r--r-- | android/view/AttachInfo_Accessor.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/android/view/AttachInfo_Accessor.java b/android/view/AttachInfo_Accessor.java index 4445a223..60c13c09 100644 --- a/android/view/AttachInfo_Accessor.java +++ b/android/view/AttachInfo_Accessor.java @@ -16,13 +16,12 @@ package android.view; -import com.android.layoutlib.bridge.android.BridgeWindow; -import com.android.layoutlib.bridge.android.BridgeWindowSession; - import android.content.Context; import android.os.Handler; import android.view.View.AttachInfo; +import com.android.layoutlib.bridge.util.ReflectionUtils; + /** * Class allowing access to package-protected methods/fields. */ @@ -33,8 +32,9 @@ public class AttachInfo_Accessor { WindowManager wm = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE); Display display = wm.getDefaultDisplay(); ViewRootImpl root = new ViewRootImpl(context, display); - AttachInfo info = new AttachInfo(new BridgeWindowSession(), new BridgeWindow(), - display, root, new Handler(), null, context); + AttachInfo info = new AttachInfo(ReflectionUtils.createProxy(IWindowSession.class), + ReflectionUtils.createProxy(IWindow.class), display, root, new Handler(), null, + context); info.mHasWindowFocus = true; info.mWindowVisibility = View.VISIBLE; info.mInTouchMode = false; // this is so that we can display selections. |