pass the language

This commit is contained in:
ligi 2014-09-06 21:53:30 +02:00
parent dc9ea923b8
commit 81135e8404

View file

@ -2,8 +2,8 @@ package org.ligi.passandroid.injections;
import com.google.common.base.Optional; import com.google.common.base.Optional;
import org.ligi.passandroid.model.PassStore;
import org.ligi.passandroid.model.Pass; import org.ligi.passandroid.model.Pass;
import org.ligi.passandroid.model.PassStore;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -43,7 +43,7 @@ public class FixedPassListPassStore implements PassStore {
} }
@Override @Override
public Pass getPassbookForId(String id) { public Pass getPassbookForId(String id, String language) {
for (Pass pass : passes) { for (Pass pass : passes) {
if (pass.getId().equals(id)) { if (pass.getId().equals(id)) {
return pass; return pass;