Commit 49b0faaf authored by Geoffrey Métais's avatar Geoffrey Métais

Videoplayer: Sanity check

setRequestedOrientation can fail on Oreo
parent 4d653151
......@@ -350,7 +350,11 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
// 100 is the value for screen_orientation_start_lock
try {
} catch (IllegalStateException ignored) {
Log.w(TAG, "onCreate: failed to set orientation");
// Extra initialization when no secondary display is detected
mIsTv = AndroidDevices.showTvUi(this);
if (mDisplayManager.isPrimary()) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment