File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
app/src/main/java/dev/dimension/flare/ui/screen/serviceselect Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 11package dev.dimension.flare.ui.screen.serviceselect
22
3+ import android.graphics.Color
4+ import android.view.View
5+ import android.view.ViewGroup.LayoutParams
36import android.webkit.CookieManager
7+ import android.widget.FrameLayout
8+ import androidx.compose.foundation.background
49import androidx.compose.foundation.layout.fillMaxSize
510import androidx.compose.foundation.layout.padding
11+ import androidx.compose.material3.MaterialTheme
612import androidx.compose.runtime.Composable
713import androidx.compose.runtime.LaunchedEffect
814import androidx.compose.runtime.getValue
@@ -42,11 +48,19 @@ internal fun VVOLoginScreen(toHome: () -> Unit) {
4248 FlareScaffold {
4349 WebView (
4450 webViewState,
51+ layoutParams =
52+ FrameLayout .LayoutParams (
53+ LayoutParams .MATCH_PARENT ,
54+ LayoutParams .MATCH_PARENT ,
55+ ),
4556 modifier =
4657 Modifier
58+ .background(MaterialTheme .colorScheme.background)
4759 .padding(it)
4860 .fillMaxSize(),
4961 onCreated = {
62+ it.setLayerType(View .LAYER_TYPE_SOFTWARE , null )
63+ it.setBackgroundColor(Color .TRANSPARENT )
5064 // clea all cookies
5165 CookieManager .getInstance().removeAllCookies(null )
5266 with (it.settings) {
Original file line number Diff line number Diff line change 11package dev.dimension.flare.ui.screen.serviceselect
22
3+ import android.graphics.Color
4+ import android.view.View
5+ import android.view.ViewGroup.LayoutParams
36import android.webkit.CookieManager
47import android.webkit.WebSettings
8+ import android.widget.FrameLayout
9+ import androidx.compose.foundation.background
510import androidx.compose.foundation.layout.fillMaxSize
611import androidx.compose.foundation.layout.padding
12+ import androidx.compose.material3.MaterialTheme
713import androidx.compose.runtime.Composable
814import androidx.compose.runtime.LaunchedEffect
915import androidx.compose.runtime.getValue
@@ -43,11 +49,19 @@ internal fun XQTLoginScreen(toHome: () -> Unit) {
4349 FlareScaffold {
4450 WebView (
4551 webViewState,
52+ layoutParams =
53+ FrameLayout .LayoutParams (
54+ LayoutParams .MATCH_PARENT ,
55+ LayoutParams .MATCH_PARENT ,
56+ ),
4657 modifier =
4758 Modifier
59+ .background(MaterialTheme .colorScheme.background)
4860 .padding(it)
4961 .fillMaxSize(),
5062 onCreated = {
63+ it.setLayerType(View .LAYER_TYPE_SOFTWARE , null )
64+ it.setBackgroundColor(Color .TRANSPARENT )
5165 // clea all cookies
5266 CookieManager .getInstance().removeAllCookies(null )
5367 with (it.settings) {
You can’t perform that action at this time.
0 commit comments