Skip to content
This repository was archived by the owner on Sep 25, 2023. It is now read-only.

Commit 9965201

Browse files
authored
avoid tapjacking and UI misrepresentation (#266)
1 parent 9097e15 commit 9965201

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/sample/conference/src/main/res/layout/fragment_video.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@
4444
<org.webrtc.SurfaceViewRenderer
4545
android:id="@+id/full_renderer"
4646
android:layout_width="match_parent"
47-
android:layout_height="match_parent"/>
47+
android:layout_height="match_parent"
48+
android:filterTouchesWhenObscured="true"/>
4849

4950
<org.webrtc.SurfaceViewRenderer
5051
android:id="@+id/small_renderer"
5152
android:layout_width="160dp"
52-
android:layout_height="120dp"/>
53+
android:layout_height="120dp"
54+
android:filterTouchesWhenObscured="true"/>
5355

5456

5557
</FrameLayout>

src/sample/p2p/src/main/res/layout/fragment_call.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
android:layout_height="160dp"
1515
android:layout_alignParentEnd="true"
1616
android:layout_alignParentRight="true"
17-
android:layout_alignParentTop="true"/>
17+
android:layout_alignParentTop="true"
18+
android:filterTouchesWhenObscured="true"/>
1819

1920
<org.webrtc.SurfaceViewRenderer
2021
android:id="@+id/full_renderer"
2122
android:layout_width="match_parent"
22-
android:layout_height="match_parent"/>
23+
android:layout_height="match_parent"
24+
android:filterTouchesWhenObscured="true"/>
2325

2426
<Button
2527
android:id="@+id/publish_btn"

0 commit comments

Comments
 (0)