1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-10-20 09:57:40 +00:00

Merge pull request #5792 from TeamNewPipe/resize_mode

Fix last resize mode not being restored correctly
This commit is contained in:
Stypox
2021-03-17 09:07:44 +01:00
committed by GitHub

View File

@@ -484,8 +484,9 @@ public final class PlayerHelper {
break;
}
// save the new resize mode so it can be restored in a future session
player.getPrefs().edit().putInt(
player.getContext().getString(R.string.last_resize_mode), resizeMode).apply();
player.getContext().getString(R.string.last_resize_mode), newResizeMode).apply();
return newResizeMode;
}