Skip to content

Commit

Permalink
Fix PiP new targetsdk (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luna712 authored Dec 31, 2024
1 parent c038c4b commit 2d89cfa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ abstract class AbstractPlayerFragment(
}
val filter = IntentFilter()
filter.addAction(ACTION_MEDIA_CONTROL)
activity?.registerReceiver(pipReceiver, filter)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
activity?.registerReceiver(pipReceiver, filter, Context.RECEIVER_NOT_EXPORTED)
} else activity?.registerReceiver(pipReceiver, filter)
val isPlaying = player.getIsPlaying()
val isPlayingValue =
if (isPlaying) CSPlayerLoading.IsPlaying else CSPlayerLoading.IsPaused
Expand Down

0 comments on commit 2d89cfa

Please sign in to comment.