Skip to content

Commit

Permalink
Fix WebView crash in lower API level.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Dec 15, 2023
1 parent 72ee6c5 commit 1df1645
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.statusBars
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
Expand Down Expand Up @@ -102,9 +100,7 @@ private fun ContentUi(
)
WebView(
state = state,
modifier = Modifier
.alpha(animatedAlpha)
.verticalScroll(rememberScrollState()),
modifier = Modifier.alpha(animatedAlpha),
onCreated = {
@SuppressLint("SetJavaScriptEnabled")
it.settings.javaScriptEnabled = true
Expand Down

0 comments on commit 1df1645

Please sign in to comment.