Browse Source

Merge pull request #536 from twig/fix-mimic-labels

fixed mimic label not working
pull/538/head
Eric Kok 5 years ago committed by GitHub
parent
commit
0144663d04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/org/transdroid/core/gui/TorrentsFragment.java

2
app/src/main/java/org/transdroid/core/gui/TorrentsFragment.java

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

Loading…
Cancel
Save