Run alert dialogs on activity main thread
authordrizea <danielrizea27@gmail.com>
Thu, 12 Jul 2012 20:38:01 +0000 (23:38 +0300)
committerDan Wells <dbw2@calvin.edu>
Thu, 12 Jul 2012 20:46:00 +0000 (16:46 -0400)
Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/SearchCatalogListView.java

index 30aa996..f997ba4 100644 (file)
@@ -145,9 +145,9 @@ public class SearchCatalogListView extends Activity{
                                                        try {
                                                                searchResults = search.getSearchResults(text,recordList.size()-1);
                                                        } catch (NoNetworkAccessException e) {
-                                                               Utils.showNetworkNotAvailableDialog(context);
+                                                               runOnUiThread(Utils.showNetworkNotAvailableDialog(context));
                                                        } catch (NoAccessToServer e) {
-                                                               Utils.showServerNotAvailableDialog(context);
+                                                               runOnUiThread(Utils.showServerNotAvailableDialog(context));
                                                        }
                                                        
                                                        runOnUiThread(new Runnable() {