Fixed crash at end on video call for a specific samsung device (GT-S7580)
This commit is contained in:
parent
1bc43359ed
commit
f8797d4bd7
6 changed files with 87 additions and 2 deletions
20
res/layout-land/video_no_opengl.xml
Normal file
20
res/layout-land/video_no_opengl.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/video_frame"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<SurfaceView
|
||||
android:visibility="visible"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:id="@+id/videoSurface" />
|
||||
|
||||
<SurfaceView
|
||||
android:id="@+id/videoCaptureSurface"
|
||||
android:layout_width="145dp"
|
||||
android:layout_height="120dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true" />
|
||||
|
||||
</RelativeLayout>
|
20
res/layout-sw533dp-land/video_no_opengl.xml
Normal file
20
res/layout-sw533dp-land/video_no_opengl.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/video_frame"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<SurfaceView
|
||||
android:visibility="visible"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:id="@+id/videoSurface" />
|
||||
|
||||
<SurfaceView
|
||||
android:id="@+id/videoCaptureSurface"
|
||||
android:layout_width="218dp"
|
||||
android:layout_height="160dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true" />
|
||||
|
||||
</RelativeLayout>
|
20
res/layout-sw720dp-land/video_no_opengl.xml
Normal file
20
res/layout-sw720dp-land/video_no_opengl.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/video_frame"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<SurfaceView
|
||||
android:visibility="visible"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:id="@+id/videoSurface" />
|
||||
|
||||
<SurfaceView
|
||||
android:id="@+id/videoCaptureSurface"
|
||||
android:layout_width="290dp"
|
||||
android:layout_height="240dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true" />
|
||||
|
||||
</RelativeLayout>
|
20
res/layout/video_no_opengl.xml
Normal file
20
res/layout/video_no_opengl.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/video_frame"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<SurfaceView
|
||||
android:visibility="visible"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:id="@+id/videoSurface" />
|
||||
|
||||
<SurfaceView
|
||||
android:id="@+id/videoCaptureSurface"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="145dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true" />
|
||||
|
||||
</RelativeLayout>
|
|
@ -57,7 +57,12 @@ public class CallVideoFragment extends Fragment implements OnGestureListener, On
|
|||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
View view = inflater.inflate(R.layout.video, container, false);
|
||||
View view;
|
||||
if (LinphoneManager.getLc().hasCrappyOpenGL()) {
|
||||
view = inflater.inflate(R.layout.video_no_opengl, container, false);
|
||||
} else {
|
||||
view = inflater.inflate(R.layout.video, container, false);
|
||||
}
|
||||
|
||||
mVideoView = (SurfaceView) view.findViewById(R.id.videoSurface);
|
||||
mCaptureView = (SurfaceView) view.findViewById(R.id.videoCaptureSurface);
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 18ee71beab0920683f34d48afe0c8d30b1a4dfc7
|
||||
Subproject commit fae2bf32e5df948f7db07d849cfcf9f1260a8f82
|
Loading…
Reference in a new issue