|
|
|
@ -39,7 +39,6 @@ import org.floens.chan.core.model.ChanThread; |
|
|
|
|
import org.floens.chan.core.model.Loadable; |
|
|
|
|
import org.floens.chan.core.model.Reply; |
|
|
|
|
import org.floens.chan.core.presenter.ReplyPresenter; |
|
|
|
|
import org.floens.chan.core.settings.ChanSettings; |
|
|
|
|
import org.floens.chan.ui.activity.StartActivity; |
|
|
|
|
import org.floens.chan.ui.drawable.DropdownArrowDrawable; |
|
|
|
|
import org.floens.chan.ui.helper.HintPopup; |
|
|
|
@ -62,7 +61,7 @@ import static org.floens.chan.utils.AndroidUtils.setRoundItemBackground; |
|
|
|
|
public class ReplyLayout extends LoadView implements View.OnClickListener, AnimationUtils.LayoutAnimationProgress, ReplyPresenter.ReplyPresenterCallback, TextWatcher, ImageDecoder.ImageDecoderCallback, SelectionListeningEditText.SelectionChangedListener { |
|
|
|
|
private ReplyPresenter presenter; |
|
|
|
|
private ReplyLayoutCallback callback; |
|
|
|
|
private boolean newCaptcha = ChanSettings.postNewCaptcha.get(); |
|
|
|
|
private boolean newCaptcha; |
|
|
|
|
|
|
|
|
|
private View replyInputLayout; |
|
|
|
|
private FrameLayout captchaContainer; |
|
|
|
@ -248,6 +247,11 @@ public class ReplyLayout extends LoadView implements View.OnClickListener, Anima |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setCaptchaVersion(boolean newCaptcha) { |
|
|
|
|
this.newCaptcha = newCaptcha; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void initCaptcha(String baseUrl, String siteKey, CaptchaCallback callback) { |
|
|
|
|
captchaLayout.initCaptcha(baseUrl, siteKey, ThemeHelper.getInstance().getTheme().isLightTheme, callback); |
|
|
|
|