Hi,
I'm trying to change the body of a method but the problem is Roaster can't reach the method (when I print all methods, it's not present). To be more precise I am trying to modify the body of onIabSetupFinished(IabResult result) that is inside startSetup(final OnIabSetupFinishedListener listener).
Here is the code:
public void startSetup(final OnIabSetupFinishedListener listener) {
mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() {
public void onIabSetupFinished(IabResult result) {
Log.d(TAG, "Setup finished.");
if (!result.isSuccess()) {
if (listener != null) {
listener.onIabSetupFinished(new IabResult(IABHELPER_REMOTE_EXCEPTION,
"RemoteException while setting up in-app billing."));
}
return;
}
mSetupDone = true;
if (listener != null) {
listener.onIabSetupFinished(new IabResult(BILLING_RESPONSE_RESULT_OK, "Setup successful."));
}
}
});
}
Thanks for any kind of help!
Hi Guilherme,
You need to change the whole body of the startSetup method. Unfortunately Roaster does not support partial editing of method bodies (yet).
Best Regards,
George Gastaldi