[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] When a new CAPTCHA is requested, immediately clear the old solution
commit 85c833192a17ad561bef1e39eb99708783f1e13c
Author: bim <dsnake@xxxxxxxxxxxxxx>
Date: Sun May 10 19:55:30 2020 -0400
When a new CAPTCHA is requested, immediately clear the old solution
EditText instead of waiting for the CAPTCHA to finish downloading.
---
.../main/java/org/torproject/android/ui/onboarding/MoatActivity.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/app/src/main/java/org/torproject/android/ui/onboarding/MoatActivity.java b/app/src/main/java/org/torproject/android/ui/onboarding/MoatActivity.java
index df390a2f..c733c7ad 100644
--- a/app/src/main/java/org/torproject/android/ui/onboarding/MoatActivity.java
+++ b/app/src/main/java/org/torproject/android/ui/onboarding/MoatActivity.java
@@ -184,13 +184,12 @@ public class MoatActivity extends AppCompatActivity implements View.OnClickListe
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.menu_refresh:
+ mEtSolution.setText("");
fetchCaptcha();
-
return true;
case android.R.id.home:
finish();
-
return true;
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits