mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
attempt to set cookie for theme in android webview
This commit is contained in:
parent
1f15392b05
commit
e1c2d041fd
1 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ package app.omnivore.omnivore.ui.settings
|
|||
|
||||
import android.annotation.SuppressLint
|
||||
import android.view.ViewGroup
|
||||
import android.webkit.CookieManager
|
||||
import android.webkit.WebView
|
||||
import android.webkit.WebViewClient
|
||||
import androidx.compose.foundation.isSystemInDarkTheme
|
||||
|
|
@ -64,7 +65,9 @@ fun PolicyWebView(navController: NavHostController, url: String) {
|
|||
}
|
||||
}
|
||||
|
||||
loadUrl(url)
|
||||
// val themeID = if (isDarkMode) "Gray" else "LightGray"
|
||||
// loadUrl(url, mutableMapOf("Set-Cookie" to "theme=$themeID; Max-Age=31536000;"))
|
||||
loadUrl(url, mutableMapOf())
|
||||
}
|
||||
}, update = {}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue