download FM_IDL when changing server address mandatory/ Each EG server version has...
authordrizea <danielrizea27@gmail.com>
Mon, 25 Jun 2012 20:39:42 +0000 (23:39 +0300)
committerdrizea <danielrizea27@gmail.com>
Mon, 25 Jun 2012 20:39:42 +0000 (23:39 +0300)
Open-ILS/src/Android/bin/EvergreenApp.apk
Open-ILS/src/Android/bin/classes.dex
Open-ILS/src/Android/src/org/evergreen/android/accountAccess/ItemsCheckOutListView.java
Open-ILS/src/Android/src/org/evergreen/android/views/ApplicationPreferences.java

index 6ef285b..0478673 100644 (file)
Binary files a/Open-ILS/src/Android/bin/EvergreenApp.apk and b/Open-ILS/src/Android/bin/EvergreenApp.apk differ
index 04424f4..8f29ef0 100644 (file)
Binary files a/Open-ILS/src/Android/bin/classes.dex and b/Open-ILS/src/Android/bin/classes.dex differ
index 266dfe9..b6fa40b 100644 (file)
@@ -55,18 +55,21 @@ public class ItemsCheckOutListView extends Activity{
                        public void run() {
                                
                                circRecords = accountAccess.getItemsCheckedOut();                       
-                               
-                               for(int i=0;i<circRecords.size();i++)
-                                       listAdapter.add(circRecords.get(i));
-                                       
-                                       
-                               listAdapter.notifyDataSetChanged();
-                               
+       
                                runOnUiThread(new Runnable() {
                                        
                                        @Override
                                        public void run() {
+                                               for(int i=0;i<circRecords.size();i++)
+                                                       listAdapter.add(circRecords.get(i));
+                                               
+                                               
                                                progressDialog.dismiss();       
+                                               
+                                               if(circRecords.size() == 0)
+                                                       Toast.makeText(context, "No circ records", Toast.LENGTH_LONG);
+                                               
+                                               listAdapter.notifyDataSetChanged();
                                        }
                                });
                        }
@@ -76,6 +79,7 @@ public class ItemsCheckOutListView extends Activity{
                if(accountAccess.isAuthenticated()){
                        progressDialog = new ProgressDialog(context);
                        progressDialog.setMessage("Please wait while retrieving circ data");
+                       progressDialog.show();
                        getCirc.start();
                        
                }
index 0dd5f0f..1ddc662 100644 (file)
@@ -87,11 +87,12 @@ public class ApplicationPreferences extends PreferenceActivity implements OnShar
                                if(key.equals("library_url")){
                                        GlobalConfigs.httpAddress = sharedPreferences.getString("library_url", "");
                                        
-                                       if(GlobalConfigs.loadedIDL == false){
+                                       
                                                
                                                progressDialog = new ProgressDialog(context);
                                                progressDialog.setMessage("Please wait while downloading FM IDL file and OrgTree");
-
+                                               progressDialog.show();
+                                               
                                                Thread loadIDLThread = new Thread(new Runnable() {
                                                        
                                                        @Override
@@ -113,7 +114,7 @@ public class ApplicationPreferences extends PreferenceActivity implements OnShar
                                                progressDialog.dismiss();
                                        }
                                        
-                               }
+                               
                
                        
                //test connection