Fix sad panda check
This commit is contained in:
1 parent
1e3b2bebb3
commit
15179a82e3
3 files changed
+3
-1
No files matched your search
@@ -124,7 +124,7 @@ private fun rethrowExactly(response: HttpResponse, body: Either<String, ByteBuff
|
||||
{ !it.hasRemaining() },
|
||||
)
|
||||
if (empty) {
|
||||
val message = if (EhUtils.isExHentai) {
|
||||
val message = if (response.request.url.host == EhUrl.DOMAIN_EX) {
|
||||
"Sad Panda\n(without panda)"
|
||||
} else {
|
||||
appCtx.getString(R.string.error_ip_banned)
|
||||
|
||||
@@ -31,6 +31,7 @@ fun AnimatedVisibilityScope.WebViewSignInScreen(navigator: DestinationsNavigator
|
||||
Settings.desktopSite.value = false
|
||||
}
|
||||
if (EhCookieStore.hasSignedIn()) {
|
||||
EhCookieStore.flush()
|
||||
postLogin()
|
||||
state.webView?.destroy()
|
||||
bgWork { awaitCancellation() }
|
||||
|
||||
@@ -256,6 +256,7 @@ where
|
||||
R: Serialize,
|
||||
{
|
||||
jni_throwing(env, |env| {
|
||||
ensure!(limit > 0, "Empty response");
|
||||
let buffer = deref_mut_direct_bytebuffer(env, str)?;
|
||||
|
||||
// SAFETY: ktor client ensure html content is valid utf-8.
|
||||
|
||||
Reference in new issue
Block a user