Android: MediaPlayer - Prevent screen from dimming, make variable as final
This commit is contained in:
parent
ab273ed1b5
commit
99591e45d6
@ -508,7 +508,7 @@ public class ReactVideoView extends ScalableVideoView implements MediaPlayer.OnP
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Activity activity = mThemedReactContext.getCurrentActivity();
|
final Activity activity = mThemedReactContext.getCurrentActivity();
|
||||||
if (activity == null) {
|
if (activity == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user