Skip to content

Commit

Permalink
Bump androidx.activity:activity-compose from 1.9.3 to 1.10.0 (#752)
Browse files Browse the repository at this point in the history
* Bump androidx.activity:activity-compose from 1.9.3 to 1.10.0

Bumps androidx.activity:activity-compose from 1.9.3 to 1.10.0.

---
updated-dependencies:
- dependency-name: androidx.activity:activity-compose
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Use LocalActivity instead of LocalContext

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charlotte Van Petegem <[email protected]>
  • Loading branch information
dependabot[bot] and chvp authored Jan 18, 2025
1 parent a91801f commit 7d970a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ dependencies {
implementation "androidx.compose.material3:material3:1.3.1"
implementation "androidx.compose.material:material-icons-core:$compose_version"
implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
implementation "androidx.activity:activity-compose:1.9.3"
implementation "androidx.activity:activity-compose:1.10.0"

// AndroidX Hilt (dependency injection)
implementation "com.google.dagger:hilt-android:$hilt_version"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package me.vanpetegem.accentor.ui.player

import android.app.Activity
import android.content.res.Configuration
import androidx.activity.compose.BackHandler
import androidx.activity.compose.LocalActivity
import androidx.compose.animation.core.exponentialDecay
import androidx.compose.animation.core.tween
import androidx.compose.foundation.clickable
Expand Down Expand Up @@ -31,7 +31,6 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.onSizeChanged
import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.unit.dp
Expand All @@ -54,7 +53,7 @@ fun PlayerOverlay(
val queueLength by playerViewModel.queueLength.observeAsState()
val showPlayer = (queueLength ?: 0) > 0
val isLandscape = (LocalConfiguration.current.orientation == Configuration.ORIENTATION_LANDSCAPE)
val isMultiWindow = (LocalContext.current as Activity).isInMultiWindowMode()
val isMultiWindow = LocalActivity.current?.isInMultiWindowMode() ?: false
val anchors =
DraggableAnchors {
true at 0f
Expand Down

0 comments on commit 7d970a8

Please sign in to comment.