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:
parent
9c61f653e5
commit
f4499de605
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue