Skip to content

Commit feb65cf

Browse files
authored
Merge pull request #5792 from TeamNewPipe/resize_mode
Fix last resize mode not being restored correctly
2 parents 93592d2 + 86fa629 commit feb65cf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,9 @@ public static int nextResizeModeAndSaveToPrefs(final Player player,
484484
break;
485485
}
486486

487+
// save the new resize mode so it can be restored in a future session
487488
player.getPrefs().edit().putInt(
488-
player.getContext().getString(R.string.last_resize_mode), resizeMode).apply();
489+
player.getContext().getString(R.string.last_resize_mode), newResizeMode).apply();
489490
return newResizeMode;
490491
}
491492

0 commit comments

Comments
 (0)