Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove isNotOnDevice
  • Loading branch information
seadowg committed Nov 26, 2025
commit a224e46a2741d67176e9016935293f08ed303781
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public boolean isLocalFormSuperseded(String formId) {
}

ServerFormDetails form = viewModel.getFormDetailsByFormId().get(formId);
return form.isNotOnDevice() || form.isUpdated();
return form.getType() != ServerFormDetails.Type.OnDevice;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,6 @@ data class ServerFormDetails @JvmOverloads constructor(
}
)

@Deprecated(
message = "Use type instead",
replaceWith = ReplaceWith("type")
)
val isNotOnDevice: Boolean = when (type) {
Type.OnDevice -> false
Type.New -> true
Type.UpdatedVersion -> false
Type.UpdatedHash -> false
Type.UpdatedMedia -> false
}

@Deprecated(
message = "Use type instead",
replaceWith = ReplaceWith("type")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void synchronize() throws FormSourceException {
boolean downloadException = false;

for (ServerFormDetails form : formList) {
if (form.isNotOnDevice() || form.isUpdated()) {
if (form.getType() != ServerFormDetails.Type.OnDevice) {
try {
formDownloader.downloadForm(form, null, null);
} catch (FormDownloadException.DownloadingInterrupted e) {
Expand Down