|
|
@ -144,7 +144,6 @@ public class TorrentsFragment extends Fragment implements OnLabelPickedListener |
|
|
|
* @param newTorrents The new, updated list of torrents |
|
|
|
* @param newTorrents The new, updated list of torrents |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void updateTorrents(ArrayList<Torrent> newTorrents, ArrayList<Label> currentLabels) { |
|
|
|
public void updateTorrents(ArrayList<Torrent> newTorrents, ArrayList<Label> currentLabels) { |
|
|
|
if (!isResumed()) return; |
|
|
|
|
|
|
|
torrents = newTorrents; |
|
|
|
torrents = newTorrents; |
|
|
|
this.currentLabels = currentLabels; |
|
|
|
this.currentLabels = currentLabels; |
|
|
|
applyAllFilters(); |
|
|
|
applyAllFilters(); |
|
|
@ -156,7 +155,6 @@ public class TorrentsFragment extends Fragment implements OnLabelPickedListener |
|
|
|
* @param wasRemoved Whether the affected torrent was indeed removed; otherwise it was updated somehow |
|
|
|
* @param wasRemoved Whether the affected torrent was indeed removed; otherwise it was updated somehow |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void quickUpdateTorrent(Torrent affected, boolean wasRemoved) { |
|
|
|
public void quickUpdateTorrent(Torrent affected, boolean wasRemoved) { |
|
|
|
if (!isResumed()) return; |
|
|
|
|
|
|
|
// Remove the old torrent object first
|
|
|
|
// Remove the old torrent object first
|
|
|
|
Iterator<Torrent> iter = torrents.iterator(); |
|
|
|
Iterator<Torrent> iter = torrents.iterator(); |
|
|
|
while (iter.hasNext()) { |
|
|
|
while (iter.hasNext()) { |
|
|
|