Bug 1072954 - Iterate entire list in RemoteClientsDialogFragment onClick. r=trivial

This commit is contained in:
Nick Alexander 2014-09-29 11:27:11 -07:00
parent e9cb23ad56
commit 1470f2cdcb

View File

@ -102,7 +102,7 @@ public class RemoteClientsDialogFragment extends DialogFragment {
final AlertDialog dialog = (AlertDialog) dialogInterface;
final SparseBooleanArray checkedItemPositions = dialog.getListView().getCheckedItemPositions();
final ArrayList<RemoteClient> checked = new ArrayList<RemoteClient>();
for (int i = 0; i < checkedItemPositions.size(); i++) {
for (int i = 0; i < clients.size(); i++) {
if (checkedItemPositions.get(i)) {
checked.add(clients.get(i));
}