File tree Expand file tree Collapse file tree
app/src/main/java/jp/toastkid/yobidashi/main/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ package jp.toastkid.yobidashi.main.ui
1010
1111import android.os.Build
1212import androidx.activity.ComponentActivity
13+ import androidx.activity.compose.LocalActivity
1314import androidx.compose.animation.AnimatedContentTransitionScope
1415import androidx.compose.animation.core.spring
1516import androidx.compose.foundation.ExperimentalFoundationApi
@@ -65,7 +66,7 @@ import kotlin.math.roundToInt
6566@OptIn(ExperimentalFoundationApi ::class )
6667@Composable
6768internal fun AppBar () {
68- val activity = LocalContext .current as ? ComponentActivity ? : return
69+ val activity = LocalActivity .current as ? ComponentActivity ? : return
6970 val contentViewModel = viewModel(ContentViewModel ::class .java, activity)
7071
7172 val sizePx = with (LocalDensity .current) { 72 .dp.toPx() }
You can’t perform that action at this time.
0 commit comments