X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/aef73a5263c94e34a38bc45ce1506651d80c7f78..bd38627e14eeb75039be0c46717b7c7e8f783923:/src/com/owncloud/android/files/OwnCloudFileObserver.java?ds=sidebyside diff --git a/src/com/owncloud/android/files/OwnCloudFileObserver.java b/src/com/owncloud/android/files/OwnCloudFileObserver.java index 8572124a..1e0c176c 100644 --- a/src/com/owncloud/android/files/OwnCloudFileObserver.java +++ b/src/com/owncloud/android/files/OwnCloudFileObserver.java @@ -18,6 +18,7 @@ package com.owncloud.android.files; +import java.io.File; import java.util.LinkedList; import java.util.List; @@ -91,9 +92,9 @@ public class OwnCloudFileObserver extends FileObserver { @Override public void onEvent(int event, String path) { - Log.d(TAG, "Got file modified with event " + event + " and path " + path); + Log.d(TAG, "Got file modified with event " + event + " and path " + mPath + ((path != null) ? File.separator + path : "")); if ((event & mMask) == 0) { - Log.wtf(TAG, "Incorrect event " + event + " sent for file " + path + + Log.wtf(TAG, "Incorrect event " + event + " sent for file " + mPath + ((path != null) ? File.separator + path : "") + " with registered for " + mMask + " and original path " + mPath); for (FileObserverStatusListener l : mListeners) @@ -135,5 +136,13 @@ public class OwnCloudFileObserver extends FileObserver { Account account, FileObserverStatusListener.Status status); } + + public OCFile getOCFile() { + return mFile; + } + + public Account getAccount() { + return mOCAccount; + } }