Ensure that synchronization indicator in the files list is stopped if unexepected...
authorDavid A. Velasco <dvelasco@solidgear.es>
Wed, 4 Jul 2012 13:51:17 +0000 (15:51 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Wed, 4 Jul 2012 13:51:17 +0000 (15:51 +0200)
AndroidManifest.xml
src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java

index 4f334df..ac0ed71 100644 (file)
@@ -18,7 +18,7 @@
  -->\r
 <manifest package="eu.alefzero.owncloud"\r
     android:versionCode="1"\r
-    android:versionName="0.1.144B" xmlns:android="http://schemas.android.com/apk/res/android">\r
+    android:versionName="0.1.145B" xmlns:android="http://schemas.android.com/apk/res/android">\r
 \r
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />\r
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />\r
index 0bd2ec2..5689262 100644 (file)
@@ -100,6 +100,10 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter {
         } catch (DavException e) {\r
             syncResult.stats.numIoExceptions++;\r
             e.printStackTrace();\r
+        } catch (Throwable t) {\r
+            //TODO count ; any type of exception should be treated, and the progress indicator finished;\r
+            //             reporting the user about bad synchronizations should be discussed\r
+            t.printStackTrace();\r
         }\r
         sendStickyBroadcast(false, -1);        \r
     }\r