Commit 3ca2b3f9 authored by Jeff Hamilton's avatar Jeff Hamilton
Browse files

Don't show the same activity multiple times.

Bug: 3398076
Change-Id: Ib1a0ac03299f713b00bc93de2e8bb7a3b531711c
parent e260fc52
......@@ -2742,7 +2742,10 @@ public class NfcService extends Application {
for (ComponentInfo info : registered) {
// Don't allow wild card matching
if (filterMatch(tagTechs, info.techs)) {
matches.add(info.resolveInfo);
// Add the activity as a match if it's not already in the list
if (!matches.contains(info.resolveInfo)) {
matches.add(info.resolveInfo);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment