refactor: remove unused code
This commit is contained in:
parent
0fa3093d0c
commit
45b5cb6bf3
1 changed files with 0 additions and 14 deletions
|
@ -8,7 +8,6 @@ import androidx.core.view.WindowCompat
|
||||||
import androidx.core.view.WindowInsetsCompat
|
import androidx.core.view.WindowInsetsCompat
|
||||||
import androidx.core.view.WindowInsetsControllerCompat
|
import androidx.core.view.WindowInsetsControllerCompat
|
||||||
import androidx.core.view.updatePadding
|
import androidx.core.view.updatePadding
|
||||||
import androidx.media3.exoplayer.trackselection.MappingTrackSelector
|
|
||||||
import androidx.media3.session.MediaSession
|
import androidx.media3.session.MediaSession
|
||||||
import dev.jdtech.jellyfin.viewmodels.PlayerActivityViewModel
|
import dev.jdtech.jellyfin.viewmodels.PlayerActivityViewModel
|
||||||
|
|
||||||
|
@ -72,19 +71,6 @@ abstract class BasePlayerActivity : AppCompatActivity() {
|
||||||
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
|
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
|
||||||
}
|
}
|
||||||
|
|
||||||
protected fun isRendererType(
|
|
||||||
mappedTrackInfo: MappingTrackSelector.MappedTrackInfo,
|
|
||||||
rendererIndex: Int,
|
|
||||||
type: Int,
|
|
||||||
): Boolean {
|
|
||||||
val trackGroupArray = mappedTrackInfo.getTrackGroups(rendererIndex)
|
|
||||||
if (trackGroupArray.length == 0) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
val trackType = mappedTrackInfo.getRendererType(rendererIndex)
|
|
||||||
return type == trackType
|
|
||||||
}
|
|
||||||
|
|
||||||
protected fun configureInsets(playerControls: View) {
|
protected fun configureInsets(playerControls: View) {
|
||||||
playerControls.setOnApplyWindowInsetsListener { _, windowInsets ->
|
playerControls.setOnApplyWindowInsetsListener { _, windowInsets ->
|
||||||
val cutout = windowInsets.displayCutout
|
val cutout = windowInsets.displayCutout
|
||||||
|
|
Loading…
Reference in a new issue