mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-04 00:59:32 +02:00
filter clients by stream
This commit is contained in:
parent
1f790bbc22
commit
928c14a17e
1 changed files with 1 additions and 3 deletions
|
@ -4,7 +4,6 @@ import android.content.Context;
|
|||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
@ -130,7 +129,6 @@ public class ClientListFragment extends Fragment {
|
|||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This interface must be implemented by activities that contain this
|
||||
* fragment to allow an interaction in this fragment to be communicated
|
||||
|
@ -189,7 +187,7 @@ public class ClientListFragment extends Fragment {
|
|||
public void run() {
|
||||
clear();
|
||||
for (ClientInfo clientInfo : ClientInfoAdapter.this.serverInfo.getClientInfos()) {
|
||||
if ((clientInfo != null) && (!hideOffline || clientInfo.isConnected()) && !clientInfo.isDeleted())
|
||||
if ((clientInfo != null) && (!hideOffline || clientInfo.isConnected()) && !clientInfo.isDeleted() && clientInfo.getStream().equals(ClientListFragment.this.stream.getId()))
|
||||
add(clientInfo);
|
||||
}
|
||||
notifyDataSetChanged();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue