Skip to content

Commit

Permalink
Bump the androidx group with 6 updates (#864)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gaëtan Muller <[email protected]>
  • Loading branch information
dependabot[bot] and MGaetan89 authored Jan 21, 2025
1 parent dae2e44 commit f3af170
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[versions]
android-gradle-plugin = "8.8.0"
androidx-activity = "1.9.3"
androidx-activity = "1.10.0"
androidx-annotation = "1.9.1"
androidx-compose = "2024.12.01"
androidx-compose = "2025.01.00"
androidx-core = "1.15.0"
androidx-datastore = "1.1.1"
androidx-datastore = "1.1.2"
androidx-fragment = "1.8.5"
androidx-lifecycle = "2.8.7"
androidx-media3 = "1.5.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package ch.srgssr.pillarbox.demo.ui.player

import android.app.Activity
import androidx.activity.compose.LocalActivity
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.fadeIn
Expand Down Expand Up @@ -66,7 +66,7 @@ fun DemoPlayerView(
pictureInPictureClick: (() -> Unit)? = null,
displayPlaylist: Boolean = false,
) {
val windowSizeClass = calculateWindowSizeClass(LocalContext.current as Activity)
val windowSizeClass = calculateWindowSizeClass(checkNotNull(LocalActivity.current))
val useSidePanel = windowSizeClass.widthSizeClass >= WindowWidthSizeClass.Medium

if (useSidePanel) {
Expand Down

0 comments on commit f3af170

Please sign in to comment.