Android: Use FrameLayout as root for notouch emulation layout

When inflating this layout, the layout inflater doesn't expect a View and rather a descendant of ViewGroup. This resulted in a crash which is resolved by using a FrameLayout instead.
This commit is contained in:
Charles Lombardo 2022-11-06 01:40:34 -05:00
parent db679ab620
commit ff38fef2e4
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
<View <FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_emulation" android:id="@+id/layout_emulation"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -11,4 +11,4 @@
android:focusable="false" android:focusable="false"
android:focusableInTouchMode="false" /> android:focusableInTouchMode="false" />
</View> </FrameLayout>

View File

@ -1,4 +1,4 @@
<View <FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_emulation" android:id="@+id/layout_emulation"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -11,4 +11,4 @@
android:focusable="false" android:focusable="false"
android:focusableInTouchMode="false" /> android:focusableInTouchMode="false" />
</View> </FrameLayout>