Fix #690
This commit is contained in:
parent
e0165a25f4
commit
96f0817c20
|
@ -878,6 +878,8 @@ public class PhotoViewer implements ZoomPanView.Listener{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onVideoSizeChanged(MediaPlayer mp, int width, int height){
|
public void onVideoSizeChanged(MediaPlayer mp, int width, int height){
|
||||||
|
if(width<=0 || height<=0)
|
||||||
|
return;
|
||||||
FrameLayout.LayoutParams params=(FrameLayout.LayoutParams) wrap.getLayoutParams();
|
FrameLayout.LayoutParams params=(FrameLayout.LayoutParams) wrap.getLayoutParams();
|
||||||
params.width=width;
|
params.width=width;
|
||||||
params.height=height;
|
params.height=height;
|
||||||
|
|
Loading…
Reference in New Issue