1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 08:30:44 +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
commit feb65cf8f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}