Play.java: Don't lookup R.id.surface_video twice.

R.id.surface_video was stored in the gsv variable just
above, don't look it up a second time.
This commit is contained in:
Jan Schmidt 2017-05-20 17:28:41 +02:00
parent 0436ec5b1c
commit 1116ae85e2

View file

@ -126,8 +126,7 @@ public class Play extends Activity implements SurfaceHolder.Callback, OnSeekBarC
} }
}); });
SurfaceView sv = (SurfaceView) this.findViewById(R.id.surface_video); SurfaceHolder sh = gsv.getHolder();
SurfaceHolder sh = sv.getHolder();
sh.addCallback(this); sh.addCallback(this);
String mediaUri = null; String mediaUri = null;