projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'share_link__new_share' into share_link__refresh_shares_folder_per_folder
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
syncadapter
/
FileSyncAdapter.java
diff --git
a/src/com/owncloud/android/syncadapter/FileSyncAdapter.java
b/src/com/owncloud/android/syncadapter/FileSyncAdapter.java
index
7b628c6
..
c550eaa
100644
(file)
--- a/
src/com/owncloud/android/syncadapter/FileSyncAdapter.java
+++ b/
src/com/owncloud/android/syncadapter/FileSyncAdapter.java
@@
-51,7
+51,7
@@
import android.content.Context;
import android.content.Intent;
import android.content.SyncResult;
import android.os.Bundle;
import android.content.Intent;
import android.content.SyncResult;
import android.os.Bundle;
-import android.support.v4.content.LocalBroadcastManager;
+
//
import android.support.v4.content.LocalBroadcastManager;
/**
* Implementation of {@link AbstractThreadedSyncAdapter} responsible for synchronizing
/**
* Implementation of {@link AbstractThreadedSyncAdapter} responsible for synchronizing
@@
-72,8
+72,8
@@
public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter {
public static final String EVENT_FULL_SYNC_START = FileSyncAdapter.class.getName() + ".EVENT_FULL_SYNC_START";
public static final String EVENT_FULL_SYNC_END = FileSyncAdapter.class.getName() + ".EVENT_FULL_SYNC_END";
public static final String EVENT_FULL_SYNC_START = FileSyncAdapter.class.getName() + ".EVENT_FULL_SYNC_START";
public static final String EVENT_FULL_SYNC_END = FileSyncAdapter.class.getName() + ".EVENT_FULL_SYNC_END";
- public static final String EVENT_F
OLDER_CONTENTS_SYNCED = FileSyncAdapter.class.getName() + ".EVENT
_FOLDER_CONTENTS_SYNCED";
- public static final String EVENT_F
OLDER_SIZE_SYNCED = FileSyncAdapter.class.getName() + ".EVENT
_FOLDER_SIZE_SYNCED";
+ public static final String EVENT_F
ULL_SYNC_FOLDER_CONTENTS_SYNCED = FileSyncAdapter.class.getName() + ".EVENT_FULL_SYNC
_FOLDER_CONTENTS_SYNCED";
+ public static final String EVENT_F
ULL_SYNC_FOLDER_SIZE_SYNCED = FileSyncAdapter.class.getName() + ".EVENT_FULL_SYNC
_FOLDER_SIZE_SYNCED";
public static final String EXTRA_ACCOUNT_NAME = FileSyncAdapter.class.getName() + ".EXTRA_ACCOUNT_NAME";
public static final String EXTRA_FOLDER_PATH = FileSyncAdapter.class.getName() + ".EXTRA_FOLDER_PATH";
public static final String EXTRA_ACCOUNT_NAME = FileSyncAdapter.class.getName() + ".EXTRA_ACCOUNT_NAME";
public static final String EXTRA_FOLDER_PATH = FileSyncAdapter.class.getName() + ".EXTRA_FOLDER_PATH";
@@
-269,7
+269,7
@@
public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter {
// synchronized folder -> notice to UI - ALWAYS, although !result.isSuccess
// synchronized folder -> notice to UI - ALWAYS, although !result.isSuccess
- sendLocalBroadcast(EVENT_FOLDER_CONTENTS_SYNCED, folder.getRemotePath(), result);
+ sendLocalBroadcast(EVENT_F
ULL_SYNC_F
OLDER_CONTENTS_SYNCED, folder.getRemotePath(), result);
// check the result of synchronizing the folder
if (result.isSuccess() || result.getCode() == ResultCode.SYNC_CONFLICT) {
// check the result of synchronizing the folder
if (result.isSuccess() || result.getCode() == ResultCode.SYNC_CONFLICT) {
@@
-343,7
+343,7
@@
public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter {
syncDown = (parentEtagChanged || etag == null || etag.length() == 0);
if(syncDown) { */
synchronizeFolder(newFile);
syncDown = (parentEtagChanged || etag == null || etag.length() == 0);
if(syncDown) { */
synchronizeFolder(newFile);
- sendLocalBroadcast(EVENT_FOLDER_SIZE_SYNCED, parent.getRemotePath(), null);
+ sendLocalBroadcast(EVENT_F
ULL_SYNC_F
OLDER_SIZE_SYNCED, parent.getRemotePath(), null);
//}
}
}
//}
}
}
@@
-368,8
+368,8
@@
public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter {
if (result != null) {
intent.putExtra(FileSyncAdapter.EXTRA_RESULT, result);
}
if (result != null) {
intent.putExtra(FileSyncAdapter.EXTRA_RESULT, result);
}
-
//getContext().sendStickyBroadcast(i
);
- LocalBroadcastManager.getInstance(getContext()).sendBroadcast(intent);
+
getContext().sendStickyBroadcast(intent
);
+
//
LocalBroadcastManager.getInstance(getContext()).sendBroadcast(intent);
}
}