| Index: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/NearbyUrlsAdapter.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/NearbyUrlsAdapter.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/NearbyUrlsAdapter.java
|
| index f01caabc40de642026eddb949f7dc4edab078296..0ba4b8aedb309e2be67c44f50dbfc57762002fea 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/NearbyUrlsAdapter.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/NearbyUrlsAdapter.java
|
| @@ -53,6 +53,20 @@ class NearbyUrlsAdapter extends ArrayAdapter<PwsResult> {
|
| }
|
|
|
| /**
|
| + * Return true if we already know we have a given groupId.
|
| + * @param groupId The requested groupId
|
| + * @return true if a PwsResult is present that has the given groupId
|
| + */
|
| + public boolean hasGroupId(String groupId) {
|
| + for (int position = 0; position < getCount(); ++position) {
|
| + if (groupId.equals(getItem(position).groupId)) {
|
| + return true;
|
| + }
|
| + }
|
| + return false;
|
| + }
|
| +
|
| + /**
|
| * Get the view for an item in the data set.
|
| * @param position Index of the list view item within the array.
|
| * @param view The old view to reuse, if possible.
|
|
|