From: David A. Velasco Date: Wed, 4 Jul 2012 13:51:17 +0000 (+0200) Subject: Ensure that synchronization indicator in the files list is stopped if unexepected... X-Git-Tag: oc-android-1.4.3~311 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/f9c951ec9a49e480c0d7c969f238c6dc68a476aa?ds=inline Ensure that synchronization indicator in the files list is stopped if unexepected problems interrupt the synchronization --- diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 4f334df4..ac0ed718 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -18,7 +18,7 @@ --> + android:versionName="0.1.145B" xmlns:android="http://schemas.android.com/apk/res/android"> diff --git a/src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java b/src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java index 0bd2ec2b..56892626 100644 --- a/src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java +++ b/src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java @@ -100,6 +100,10 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter { } catch (DavException e) { syncResult.stats.numIoExceptions++; e.printStackTrace(); + } catch (Throwable t) { + //TODO count ; any type of exception should be treated, and the progress indicator finished; + // reporting the user about bad synchronizations should be discussed + t.printStackTrace(); } sendStickyBroadcast(false, -1); }