Skip to content

Commit b6e1d70

Browse files
decisivearmorclaude
andcommitted
fix: Remove duplicate cleanupRemoteCommandCenter method
Remove the second duplicate definition of cleanupRemoteCommandCenter that was causing compilation errors. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5323555 commit b6e1d70

File tree

1 file changed

+0
-13
lines changed
  • packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation

1 file changed

+0
-13
lines changed

packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/FVPVideoPlayer.m

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -778,17 +778,4 @@ - (void)updateNowPlayingInfo {
778778
#endif
779779
}
780780

781-
- (void)cleanupRemoteCommandCenter {
782-
#if TARGET_OS_IOS
783-
MPRemoteCommandCenter *commandCenter = [MPRemoteCommandCenter sharedCommandCenter];
784-
785-
[commandCenter.playCommand setEnabled:NO];
786-
[commandCenter.pauseCommand setEnabled:NO];
787-
[commandCenter.togglePlayPauseCommand setEnabled:NO];
788-
[commandCenter.changePlaybackPositionCommand setEnabled:NO];
789-
790-
[[MPNowPlayingInfoCenter defaultCenter] setNowPlayingInfo:nil];
791-
#endif
792-
}
793-
794781
@end

0 commit comments

Comments
 (0)