Skip to content

Commit f41c1b1

Browse files
Gemini review feedback
1 parent 3406ff6 commit f41c1b1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public void setPlaybackSpeed(@NonNull Double speed) {
117117

118118
@Override
119119
public void seekTo(@NonNull Long position) {
120-
exoPlayer.seekTo(position.intValue());
120+
exoPlayer.seekTo(position);
121121
}
122122

123123
@NonNull

packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void initialize() {
145145
// Set up the instance-specific API handler, and make sure it is removed when the player is
146146
// disposed.
147147
BinaryMessenger messenger = flutterState.binaryMessenger;
148-
final String channelSuffix = Integer.toString((int) id);
148+
final String channelSuffix = Long.toString(id);
149149
VideoPlayerInstanceApi.setUp(messenger, channelSuffix, videoPlayer);
150150
videoPlayer.setDisposeHandler(
151151
() -> VideoPlayerInstanceApi.setUp(messenger, channelSuffix, null));

packages/video_player/video_player_android/android/src/test/java/io/flutter/plugins/videoplayer/VideoPlayerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public void seekAndGetPosition() {
184184
verify(mockExoPlayer).seekTo(10);
185185

186186
when(mockExoPlayer.getCurrentPosition()).thenReturn(20L);
187-
assertEquals(20L, videoPlayer.getPosition().doubleValue(), 0.001);
187+
assertEquals(20L, videoPlayer.getPosition().longValue());
188188
}
189189

190190
@Test

0 commit comments

Comments
 (0)