1
0
mirror of https://github.com/nvllsvm/Audinaut synced 2025-01-24 21:01:27 +01:00

Eliminate redundant method

This commit is contained in:
Andrew Rabert 2018-04-24 00:24:46 -04:00
parent 7e151ce5ae
commit 561eb4add9

View File

@ -175,7 +175,7 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
onShuffleRequested();
return true;
case R.id.menu_refresh:
refresh();
refresh(true);
return true;
case R.id.menu_play_now:
playNow(false, false, false);
@ -432,18 +432,13 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
return context != null ? context.getDownloadService() : null;
}
private void refresh() {
refresh(true);
}
void refresh(boolean refresh) {
}
@Override
public void onRefresh() {
refreshLayout.setRefreshing(false);
refresh();
refresh(true);
}
public void setProgressVisible(boolean visible) {
@ -1185,7 +1180,7 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
if (adapter != null) {
adapter.removeItem(remove);
} else {
refresh();
refresh(true);
}
} else {
UpdateView.triggerUpdate();
@ -1211,7 +1206,7 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
adapter.removeItem(song);
}
} else {
refresh();
refresh(true);
}
} else {
UpdateView.triggerUpdate();