1 Reply Latest reply on Aug 16, 2016 3:34 PM by gastaldi

    How to reach a method defined inside another method with Roaster?

    g.andrade.1995

      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!