mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-11-14 22:04:56 +00:00
Use PlayerHelper.retrieveResizeModeFromPrefs in Player
This commit is contained in:
parent
4f828fbe00
commit
cade272501
@ -855,8 +855,7 @@ public final class Player implements
|
|||||||
|
|
||||||
private void initVideoPlayer() {
|
private void initVideoPlayer() {
|
||||||
// restore last resize mode
|
// restore last resize mode
|
||||||
setResizeMode(prefs.getInt(context.getString(R.string.last_resize_mode),
|
setResizeMode(PlayerHelper.retrieveResizeModeFromPrefs(this));
|
||||||
AspectRatioFrameLayout.RESIZE_MODE_FIT));
|
|
||||||
binding.getRoot().setLayoutParams(new FrameLayout.LayoutParams(
|
binding.getRoot().setLayoutParams(new FrameLayout.LayoutParams(
|
||||||
FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT));
|
FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user