private boolean mIsDownloading;
+ private boolean mInConflict;
+
/**
* Create new {@link OCFile} with given path.
mPublicLink = source.readString();
mPermissions = source.readString();
mRemoteId = source.readString();
- mNeedsUpdateThumbnail = source.readInt() == 0;
- mIsDownloading = source.readInt() == 0;
+ mNeedsUpdateThumbnail = source.readInt() == 1;
+ mIsDownloading = source.readInt() == 1;
+ mInConflict = source.readInt() == 1;
}
dest.writeString(mRemoteId);
dest.writeInt(mNeedsUpdateThumbnail ? 1 : 0);
dest.writeInt(mIsDownloading ? 1 : 0);
+ dest.writeInt(mInConflict ? 1 : 0);
}
/**
mRemoteId = null;
mNeedsUpdateThumbnail = false;
mIsDownloading = false;
+ mInConflict = false;
}
/**
this.mIsDownloading = isDownloading;
}
- public boolean isSynchronizing() {
- // TODO real implementation
- return false;
+ public boolean isInConflict() {
+ return mInConflict;
}
+ public void setInConflict(boolean inConflict) {
+ mInConflict = inConflict;
+ }
}