From 39a249c6533532ad313fd89ed170712901dab35c Mon Sep 17 00:00:00 2001 From: Florens Douwes Date: Sun, 18 May 2014 22:02:36 +0200 Subject: [PATCH] Clear the captcha input field when new captcha gets loaded. --- .../main/java/org/floens/chan/ui/fragment/ReplyFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Clover/app/src/main/java/org/floens/chan/ui/fragment/ReplyFragment.java b/Clover/app/src/main/java/org/floens/chan/ui/fragment/ReplyFragment.java index a208951f..f78af489 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/fragment/ReplyFragment.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/fragment/ReplyFragment.java @@ -345,7 +345,8 @@ public class ReplyFragment extends DialogFragment { * Set the picked image in the imageView. Sets the file in the draft. Call * null on the file to empty the imageView. * - * @param imagePath file to image to send or null to clear + * @param name the filename + * @param file the file */ private void setFile(final String name, final File file) { draft.file = file; @@ -406,6 +407,7 @@ public class ReplyFragment extends DialogFragment { gettingCaptcha = true; captchaContainer.setView(null); + captchaInput.setText(""); String url = ChanUrls.getCaptchaChallengeUrl();