We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c463e3f commit 16ff34cCopy full SHA for 16ff34c
AndroidAsync/src/com/koushikdutta/async/PushParser.java
@@ -251,6 +251,12 @@ static Method getTap(TapCallback callback) {
251
Method found = mTable.get(callback.getClass());
252
if (found != null)
253
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
+
260
for (Method method : callback.getClass().getMethods()) {
261
if ("tap".equals(method.getName())) {
262
mTable.put(callback.getClass(), method);
0 commit comments