Small refactor in player class
This commit is contained in:
parent
a3f99bd781
commit
3c23fb0b13
1 changed files with 2 additions and 2 deletions
|
@ -593,8 +593,7 @@ public final class Player implements
|
||||||
*/
|
*/
|
||||||
private void setupPlayerSeekOverlay() {
|
private void setupPlayerSeekOverlay() {
|
||||||
binding.fastSeekOverlay
|
binding.fastSeekOverlay
|
||||||
.seekSecondsSupplier(
|
.seekSecondsSupplier(() -> retrieveSeekDurationFromPreferences(this) / 1000)
|
||||||
() -> (int) (retrieveSeekDurationFromPreferences(this) / 1000.0f))
|
|
||||||
.performListener(new PlayerFastSeekOverlay.PerformListener() {
|
.performListener(new PlayerFastSeekOverlay.PerformListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -607,6 +606,7 @@ public final class Player implements
|
||||||
animate(binding.fastSeekOverlay, false, SEEK_OVERLAY_DURATION);
|
animate(binding.fastSeekOverlay, false, SEEK_OVERLAY_DURATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public FastSeekDirection getFastSeekDirection(
|
public FastSeekDirection getFastSeekDirection(
|
||||||
@NonNull final DisplayPortion portion
|
@NonNull final DisplayPortion portion
|
||||||
|
|
Loading…
Add table
Reference in a new issue