Skip to content

Commit 703845c

Browse files
authored
Merge pull request #1213 from DimensionDev/bugfix/webview_layertype
make webview software layer
2 parents 9d05647 + 2672a81 commit 703845c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/src/main/java/dev/dimension/flare/ui/screen/serviceselect/VVOLoginScreen.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package dev.dimension.flare.ui.screen.serviceselect
22

33
import android.graphics.Color
4+
import android.view.View
45
import android.view.ViewGroup.LayoutParams
56
import android.webkit.CookieManager
67
import android.widget.FrameLayout
@@ -58,7 +59,7 @@ internal fun VVOLoginScreen(toHome: () -> Unit) {
5859
.padding(it)
5960
.fillMaxSize(),
6061
onCreated = {
61-
// it.setLayerType(View.LAYER_TYPE_SOFTWARE, null)
62+
it.setLayerType(View.LAYER_TYPE_SOFTWARE, null)
6263
it.setBackgroundColor(Color.TRANSPARENT)
6364
// clea all cookies
6465
CookieManager.getInstance().removeAllCookies(null)

app/src/main/java/dev/dimension/flare/ui/screen/serviceselect/XQTLoginScreen.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package dev.dimension.flare.ui.screen.serviceselect
22

33
import android.graphics.Color
4+
import android.view.View
45
import android.view.ViewGroup.LayoutParams
56
import android.webkit.CookieManager
67
import android.webkit.WebSettings
@@ -59,7 +60,7 @@ internal fun XQTLoginScreen(toHome: () -> Unit) {
5960
.padding(it)
6061
.fillMaxSize(),
6162
onCreated = {
62-
// it.setLayerType(View.LAYER_TYPE_SOFTWARE, null)
63+
it.setLayerType(View.LAYER_TYPE_SOFTWARE, null)
6364
it.setBackgroundColor(Color.TRANSPARENT)
6465
// clea all cookies
6566
CookieManager.getInstance().removeAllCookies(null)

0 commit comments

Comments
 (0)