cl.java 1.66 KB
import android.annotation.TargetApi;
import android.os.Bundle;
import android.os.IBinder;
import android.support.annotation.RequiresApi;
import android.util.Log;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

@TargetApi(9)
@RequiresApi(9)
public final class cl
{
  public static Method a;
  public static boolean b;
  private static Method c;
  private static boolean d;
  
  public static IBinder a(Bundle paramBundle, String paramString)
  {
    if (!d) {}
    try
    {
      Method localMethod = Bundle.class.getMethod("getIBinder", new Class[] { String.class });
      c = localMethod;
      localMethod.setAccessible(true);
      d = true;
      if (c == null) {}
    }
    catch (NoSuchMethodException localNoSuchMethodException)
    {
      for (;;)
      {
        try
        {
          paramBundle = (IBinder)c.invoke(paramBundle, new Object[] { paramString });
          return paramBundle;
        }
        catch (IllegalAccessException paramBundle)
        {
          Log.i("BundleCompatGingerbread", "Failed to invoke getIBinder via reflection", paramBundle);
          c = null;
          return null;
        }
        catch (IllegalArgumentException paramBundle)
        {
          continue;
        }
        catch (InvocationTargetException paramBundle)
        {
          continue;
        }
        localNoSuchMethodException = localNoSuchMethodException;
        Log.i("BundleCompatGingerbread", "Failed to retrieve getIBinder method", localNoSuchMethodException);
      }
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/cl.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */