Skip to content

Commit fbc5573

Browse files
author
chenenyu
committed
Bug fix: #68
1 parent a67d83f commit fbc5573

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

router/src/main/java/com/chenenyu/router/RealRouter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,11 @@ public Intent getIntent(Context context) {
217217
return finalizeIntent(context, matcher, null);
218218
}
219219
} else {
220+
boolean isiImplicit = matcher instanceof AbsImplicitMatcher;
220221
for (Map.Entry<String, Class<?>> entry : entries) {
221-
if (matcher.match(context, mRouteRequest.getUri(), entry.getKey(), mRouteRequest)) {
222+
if (matcher.match(context, mRouteRequest.getUri(), isiImplicit ? null : entry.getKey(), mRouteRequest)) {
222223
RLog.i("Caught by " + matcher.getClass().getCanonicalName());
223-
return finalizeIntent(context, matcher, entry.getValue());
224+
return finalizeIntent(context, matcher, isiImplicit ? null : entry.getValue());
224225
}
225226
}
226227
}

0 commit comments

Comments
 (0)