Merge pull request #5792 from TeamNewPipe/resize_mode
Fix last resize mode not being restored correctly
This commit is contained in:
commit
feb65cf8f3
1 changed files with 2 additions and 1 deletions
|
@ -484,8 +484,9 @@ public final class PlayerHelper {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// save the new resize mode so it can be restored in a future session
|
||||||
player.getPrefs().edit().putInt(
|
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;
|
return newResizeMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue