Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f50530ee authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

add private static field for HTTP 404 value in ListFileRemoteOperation

parent 3ffad7db
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import foundation.e.drive.utils.CommonUtils;
 */
public class ListFileRemoteOperation extends RemoteOperation<ArrayList<RemoteFile>> {
    private final String TAG = ListFileRemoteOperation.class.getSimpleName();
    private static final int HTTP_404 = 404;

    private final List<SyncedFolder> syncedFolders;
    private final Context context;
@@ -85,7 +86,7 @@ public class ListFileRemoteOperation extends RemoteOperation<ArrayList<RemoteFil
                final boolean dirHasChanged = onListFileSuccess(mSyncedFolderIterator, syncedFolder, result);
                atLeastOneDirAsChanged = dirHasChanged || atLeastOneDirAsChanged; //stay true if set previously
            } else { //Result isn't a success
                if (result.getHttpCode() == 404) { //dir has not been found
                if (result.getHttpCode() == HTTP_404) { //dir has not been found
                    atLeastOneDirAsChanged = true;
                    onHttp404Received(mSyncedFolderIterator, syncedFolder);
                }