auto-rotate video to sensor landscape orientation
This commit is contained in:
parent
6c63eb7d66
commit
83a41ca6ce
2 changed files with 4 additions and 2 deletions
|
@ -395,7 +395,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
|||
|
||||
return ViewCompat.onApplyWindowInsets(v,
|
||||
insets.replaceSystemWindowInsets(
|
||||
insets.getSystemWindowInsetLeft(),
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
insets.getSystemWindowInsetBottom()));
|
||||
|
@ -1388,6 +1388,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
|||
}
|
||||
findViewById(R.id.global_sdk_initializing_status).setVisibility(View.GONE);
|
||||
findViewById(R.id.app_bar_main_container).setFitsSystemWindows(false);
|
||||
lockDrawer();
|
||||
|
||||
View decorView = getWindow().getDecorView();
|
||||
decorView.setSystemUiVisibility(
|
||||
|
@ -1424,6 +1425,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
|||
if (actionBar != null) {
|
||||
actionBar.show();
|
||||
}
|
||||
unlockDrawer();
|
||||
inFullscreenMode = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -1915,7 +1915,7 @@ public class FileViewFragment extends BaseFragment implements
|
|||
int statusBarHeight = activity.getStatusBarHeight();
|
||||
exoplayerContainer.setPadding(0, 0, 0, statusBarHeight);
|
||||
|
||||
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
|
||||
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue