ij.java 1.74 KB
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import com.google.android.gms.analytics.zzh;
import com.google.android.gms.common.internal.zzac;
import com.google.android.gms.common.util.zze;
import com.google.android.gms.internal.zzsc;
import com.google.android.gms.internal.zztd;

public abstract class ij
{
  private static volatile Handler a;
  final zzsc b;
  final Runnable c;
  volatile long d;
  
  protected ij(zzsc paramzzsc)
  {
    zzac.zzw(paramzzsc);
    this.b = paramzzsc;
    this.c = new Runnable()
    {
      public final void run()
      {
        if (Looper.myLooper() == Looper.getMainLooper()) {
          ij.a(ij.this).zznU().zzg(this);
        }
        boolean bool;
        do
        {
          return;
          bool = ij.this.b();
          ij.b(ij.this);
        } while (!bool);
        ij.this.a();
      }
    };
  }
  
  public abstract void a();
  
  public final void a(long paramLong)
  {
    c();
    if (paramLong >= 0L)
    {
      this.d = this.b.zznR().currentTimeMillis();
      if (!d().postDelayed(this.c, paramLong)) {
        this.b.zznS().zze("Failed to schedule delayed post. time", Long.valueOf(paramLong));
      }
    }
  }
  
  public final boolean b()
  {
    return this.d != 0L;
  }
  
  public final void c()
  {
    this.d = 0L;
    d().removeCallbacks(this.c);
  }
  
  final Handler d()
  {
    if (a != null) {
      return a;
    }
    try
    {
      if (a == null) {
        a = new Handler(this.b.getContext().getMainLooper());
      }
      Handler localHandler = a;
      return localHandler;
    }
    finally {}
  }
}


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