mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Revert "Attempt to fix stuff"
This reverts commit 58b640a8c85f090c9d8b9fc8de342e95a708f7a0.
This commit is contained in:
parent
8bfdd0047c
commit
49c27b1464
2 changed files with 21 additions and 27 deletions
|
@ -92,7 +92,7 @@ public class FileAlterationMagicListener implements FileAlterationListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onFileCreate(final File file, int delay) {
|
public void onFileCreate(final File file, int delay) {
|
||||||
if (file != null && !uploadMap.containsKey(file.getAbsolutePath())) {
|
if (file != null) {
|
||||||
uploadMap.put(file.getAbsolutePath(), null);
|
uploadMap.put(file.getAbsolutePath(), null);
|
||||||
|
|
||||||
String mimetypeString = FileStorageUtils.getMimeTypeFromName(file.getAbsolutePath());
|
String mimetypeString = FileStorageUtils.getMimeTypeFromName(file.getAbsolutePath());
|
||||||
|
|
|
@ -66,7 +66,6 @@ public class FileAlterationMagicObserver extends FileAlterationObserver implemen
|
||||||
private FileFilter fileFilter;
|
private FileFilter fileFilter;
|
||||||
private Comparator<File> comparator;
|
private Comparator<File> comparator;
|
||||||
private SyncedFolder syncedFolder;
|
private SyncedFolder syncedFolder;
|
||||||
private boolean isCheckRunning = false;
|
|
||||||
|
|
||||||
private static final FileEntry[] EMPTY_ENTRIES = new FileEntry[0];
|
private static final FileEntry[] EMPTY_ENTRIES = new FileEntry[0];
|
||||||
|
|
||||||
|
@ -219,8 +218,6 @@ public class FileAlterationMagicObserver extends FileAlterationObserver implemen
|
||||||
*/
|
*/
|
||||||
public void checkAndNotify() {
|
public void checkAndNotify() {
|
||||||
|
|
||||||
if (!isCheckRunning) {
|
|
||||||
isCheckRunning = true;
|
|
||||||
/* fire onStart() */
|
/* fire onStart() */
|
||||||
for (final FileAlterationMagicListener listener : listeners) {
|
for (final FileAlterationMagicListener listener : listeners) {
|
||||||
listener.onStart(this);
|
listener.onStart(this);
|
||||||
|
@ -249,9 +246,6 @@ public class FileAlterationMagicObserver extends FileAlterationObserver implemen
|
||||||
for (final FileAlterationMagicListener listener : listeners) {
|
for (final FileAlterationMagicListener listener : listeners) {
|
||||||
listener.onStop(this);
|
listener.onStop(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
isCheckRunning = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue