BundleCompat.java 1.98 KB
package android.support.v4.app;

import android.os.Build.VERSION;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
import cl;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public final class BundleCompat
{
  public static IBinder getBinder(Bundle paramBundle, String paramString)
  {
    if (Build.VERSION.SDK_INT >= 18) {
      return paramBundle.getBinder(paramString);
    }
    return cl.a(paramBundle, paramString);
  }
  
  public static void putBinder(Bundle paramBundle, String paramString, IBinder paramIBinder)
  {
    if (Build.VERSION.SDK_INT >= 18) {
      paramBundle.putBinder(paramString, paramIBinder);
    }
    for (;;)
    {
      return;
      if (!cl.b) {}
      try
      {
        Method localMethod = Bundle.class.getMethod("putIBinder", new Class[] { String.class, IBinder.class });
        cl.a = localMethod;
        localMethod.setAccessible(true);
        cl.b = true;
        if (cl.a == null) {
          continue;
        }
      }
      catch (NoSuchMethodException localNoSuchMethodException)
      {
        try
        {
          cl.a.invoke(paramBundle, new Object[] { paramString, paramIBinder });
          return;
        }
        catch (InvocationTargetException paramBundle)
        {
          Log.i("BundleCompatGingerbread", "Failed to invoke putIBinder via reflection", paramBundle);
          cl.a = null;
          return;
          localNoSuchMethodException = localNoSuchMethodException;
          Log.i("BundleCompatGingerbread", "Failed to retrieve putIBinder method", localNoSuchMethodException);
        }
        catch (IllegalAccessException paramBundle)
        {
          for (;;) {}
        }
        catch (IllegalArgumentException paramBundle)
        {
          for (;;) {}
        }
      }
    }
  }
}


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