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

Commit

Permalink
avoid tapjacking and UI misrepresentation (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyihui1 authored Apr 9, 2021
1 parent 9097e15 commit 9965201
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/sample/conference/src/main/res/layout/fragment_video.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@
<org.webrtc.SurfaceViewRenderer
android:id="@+id/full_renderer"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:layout_height="match_parent"
android:filterTouchesWhenObscured="true"/>

<org.webrtc.SurfaceViewRenderer
android:id="@+id/small_renderer"
android:layout_width="160dp"
android:layout_height="120dp"/>
android:layout_height="120dp"
android:filterTouchesWhenObscured="true"/>


</FrameLayout>
Expand Down
6 changes: 4 additions & 2 deletions src/sample/p2p/src/main/res/layout/fragment_call.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
android:layout_height="160dp"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"/>
android:layout_alignParentTop="true"
android:filterTouchesWhenObscured="true"/>

<org.webrtc.SurfaceViewRenderer
android:id="@+id/full_renderer"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:layout_height="match_parent"
android:filterTouchesWhenObscured="true"/>

<Button
android:id="@+id/publish_btn"
Expand Down

0 comments on commit 9965201

Please # to comment.