Skip to content

Commit

Permalink
Fix last resize mode not being restored correctly
Browse files Browse the repository at this point in the history
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 TeamNewPipe#5613
  • Loading branch information
TobiGr authored and Stypox committed Mar 18, 2021
1 parent 93592d2 commit ddb68cb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,9 @@ public static int nextResizeModeAndSaveToPrefs(final Player player,
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;
}

Expand Down

0 comments on commit ddb68cb

Please sign in to comment.