Fix last resize mode not being restored correctly

I think the settings key "last_resize_mode" is ambiguous. While it is used to get the recently used resize mode, someone thought while working on the resize mode switcher, that the old (to be replaced) resize mode should be stored. 
Fixes #5613
This commit is contained in:
TobiGr 2021-03-08 09:46:05 +01:00
parent 8518933ca8
commit 86fa629591
1 changed files with 2 additions and 1 deletions

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