From 26683237e56f7c2ed4c534c91070ac8d09ea2bba Mon Sep 17 00:00:00 2001 From: Floens Date: Fri, 9 Feb 2018 20:18:26 +0100 Subject: [PATCH] commonsite: properly set the url for the post. increase genericwebview check timer frequency. --- .../main/java/org/floens/chan/core/site/common/CommonSite.java | 2 ++ .../java/org/floens/chan/core/site/sites/vichan/ViChan.java | 1 - .../chan/ui/captcha/GenericWebViewAuthenticationLayout.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Clover/app/src/main/java/org/floens/chan/core/site/common/CommonSite.java b/Clover/app/src/main/java/org/floens/chan/core/site/common/CommonSite.java index 274a1867..c9f23110 100644 --- a/Clover/app/src/main/java/org/floens/chan/core/site/common/CommonSite.java +++ b/Clover/app/src/main/java/org/floens/chan/core/site/common/CommonSite.java @@ -355,6 +355,8 @@ public abstract class CommonSite extends SiteBase { } }; + call.url(endpoints().reply(reply.loadable)); + setupPost(reply, call); httpCallManager.makeHttpCall(call, new HttpCall.HttpCallback() { diff --git a/Clover/app/src/main/java/org/floens/chan/core/site/sites/vichan/ViChan.java b/Clover/app/src/main/java/org/floens/chan/core/site/sites/vichan/ViChan.java index ccc76514..5f8d6ff6 100644 --- a/Clover/app/src/main/java/org/floens/chan/core/site/sites/vichan/ViChan.java +++ b/Clover/app/src/main/java/org/floens/chan/core/site/sites/vichan/ViChan.java @@ -168,7 +168,6 @@ public class ViChan extends CommonSite { public HttpUrl reply(Loadable loadable) { return sys.builder().s("post.php").url(); } - }); setActions(new CommonActions() { diff --git a/Clover/app/src/main/java/org/floens/chan/ui/captcha/GenericWebViewAuthenticationLayout.java b/Clover/app/src/main/java/org/floens/chan/ui/captcha/GenericWebViewAuthenticationLayout.java index 6e717587..21473b0a 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/captcha/GenericWebViewAuthenticationLayout.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/captcha/GenericWebViewAuthenticationLayout.java @@ -31,7 +31,7 @@ import org.floens.chan.core.site.Site; import org.floens.chan.utils.AndroidUtils; public class GenericWebViewAuthenticationLayout extends WebView implements AuthenticationLayoutInterface { - public static final int CHECK_INTERVAL = 800; + public static final int CHECK_INTERVAL = 500; private final Handler handler = new Handler(); private boolean attachedToWindow = false;