Android: MediaPlayer - Prevent screen from dimming, make variable as final

This commit is contained in:
Gerardo Pacheco 2018-07-25 10:34:41 +02:00
parent ab273ed1b5
commit 99591e45d6

View File

@ -508,7 +508,7 @@ public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnP
return;
}
Activity activity = mThemedReactContext.getCurrentActivity();
final Activity activity = mThemedReactContext.getCurrentActivity();
if (activity == null) {
return;
}