mNotificationManager.notify(R.string.uploader_upload_in_progress_ticker, mNotification); // NOT AN ERROR; uploader_upload_in_progress_ticker is the target, not a new notification
mNotification.contentIntent);
mNotificationManager.notify(R.string.uploader_upload_in_progress_ticker, mNotification); // NOT AN ERROR; uploader_upload_in_progress_ticker is the target, not a new notification
@@ -651,9+651,9 @@ public class FileUploader extends Service implements OnDatatransferProgressListe
if (uploadResult.getCode() == ResultCode.LOCAL_STORAGE_FULL ||
- if (!originalStoragePath.equals(temporalPath)) { // preventing weird but possible situation
+ if (!mOriginalStoragePath.equals(temporalPath)) { // preventing weird but possible situation
InputStream in = null;
OutputStream out = null;
try {
InputStream in = null;
OutputStream out = null;
try {
@@ -194,7+205,7 @@ public class UploadFileOperation extends RemoteOperation {
try {
if (in != null) in.close();
} catch (Exception e) {
try {
if (in != null) in.close();
} catch (Exception e) {
- Log.d(TAG, "Weird exception while closing input stream for " + originalStoragePath + " (ignoring)", e);
+ Log.d(TAG, "Weird exception while closing input stream for " + mOriginalStoragePath + " (ignoring)", e);
}
try {
if (out != null) out.close();
}
try {
if (out != null) out.close();
@@ -231,7+242,6 @@ public class UploadFileOperation extends RemoteOperation {
} else { // FileUploader.LOCAL_BEHAVIOUR_MOVE
fileToMove = originalFile;
}
} else { // FileUploader.LOCAL_BEHAVIOUR_MOVE
fileToMove = originalFile;
}
- expectedFile = new File(mFile.getStoragePath());
if (!expectedFile.equals(fileToMove) && !fileToMove.renameTo(expectedFile)) {
mFile.setStoragePath(null); // forget the local file
// by now, treat this as a success; the file was uploaded; the user won't like that the local file is not linked, but this should be a veeery rare fail;
if (!expectedFile.equals(fileToMove) && !fileToMove.renameTo(expectedFile)) {
mFile.setStoragePath(null); // forget the local file
// by now, treat this as a success; the file was uploaded; the user won't like that the local file is not linked, but this should be a veeery rare fail;
@@ -259,7+269,7 @@ public class UploadFileOperation extends RemoteOperation {
temporalFile.delete();
}
if (result.isSuccess()) {
temporalFile.delete();
}
if (result.isSuccess()) {
- Log.i(TAG, "Upload of " + originalStoragePath + " to " + mRemotePath + ": " + result.getLogMessage());
+ Log.i(TAG, "Upload of " + mOriginalStoragePath + " to " + mRemotePath + ": " + result.getLogMessage());
} else {
if (result.getException() != null) {
} else {
if (result.getException() != null) {
@@ -269,9+279,9 @@ public class UploadFileOperation extends RemoteOperation {
} else if (!localCopyPassed) {
complement = " (while copying local file to " + FileStorageUtils.getSavePath(mAccount.name) + ")";
}
} else if (!localCopyPassed) {
complement = " (while copying local file to " + FileStorageUtils.getSavePath(mAccount.name) + ")";