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
pull/5792/head
TobiGr 2021-03-08 09:46:05 +01:00
rodzic 8518933ca8
commit 86fa629591
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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