Skip to content

Commit 16ff34c

Browse files
committed
Change-Id: Ic80c0b1f2bda6b53cb477972d560e9123cb21427
1 parent c463e3f commit 16ff34c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

AndroidAsync/src/com/koushikdutta/async/PushParser.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,12 @@ static Method getTap(TapCallback callback) {
251251
Method found = mTable.get(callback.getClass());
252252
if (found != null)
253253
return found;
254+
// try the proguard friendly route, take the first/only method
255+
// in case "tap" has been renamed
256+
Method[] candidates = callback.getClass().getDeclaredMethods();
257+
if (candidates.length == 1)
258+
return candidates[0];
259+
254260
for (Method method : callback.getClass().getMethods()) {
255261
if ("tap".equals(method.getName())) {
256262
mTable.put(callback.getClass(), method);

0 commit comments

Comments
 (0)