]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/DictionaryActivity.java
Make more robust by catching some exceptions.
[Dictionary.git] / src / com / hughes / android / dictionary / DictionaryActivity.java
index 05893c07a40b6cf22b6364bb95301634fbdd0087..840f2d89ba085b0169bac448323a4fe79a3f93e8 100644 (file)
@@ -853,7 +853,10 @@ public class DictionaryActivity extends AppCompatActivity {
             @Override
             public void run() {
                 searchTextView.setThreshold(0);
-                searchTextView.showDropDown();
+                try {
+                    searchTextView.showDropDown();
+                // ignore any errors, in particular BadTokenException happens a lot
+                } catch (Exception e) {}
             }
         });
     }