Don't modify the objects of the controller directly
Add a method to the controller that allows to set a list of downloads as not available online.
This commit is contained in:
@@ -293,6 +293,16 @@ public class UpdaterController implements UpdaterControllerInt {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUpdatesNotAvailableOnline(List<String> downloadIds) {
|
||||
for (String downloadId : downloadIds) {
|
||||
DownloadEntry update = mDownloads.get(downloadId);
|
||||
if (update != null) {
|
||||
update.mUpdate.setAvailableOnline(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUpdatesAvailableOnline(List<String> downloadIds, boolean purgeList) {
|
||||
List<String> toRemove = new ArrayList<>();
|
||||
|
Reference in New Issue
Block a user