1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-13 21:34:56 +00:00

Use PlayerHelper.retrieveResizeModeFromPrefs in Player

This commit is contained in:
Stypox 2021-01-28 14:33:50 +01:00
parent 4f828fbe00
commit cade272501
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -855,8 +855,7 @@ public final class Player implements
private void initVideoPlayer() {
// restore last resize mode
setResizeMode(prefs.getInt(context.getString(R.string.last_resize_mode),
AspectRatioFrameLayout.RESIZE_MODE_FIT));
setResizeMode(PlayerHelper.retrieveResizeModeFromPrefs(this));
binding.getRoot().setLayoutParams(new FrameLayout.LayoutParams(
FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT));
}