package com.google.android.m4b.maps.bu;

import android.annotation.TargetApi;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Canvas;
import android.os.Handler;
import android.os.IBinder;
import android.os.Looper;
import android.os.RemoteException;
import android.view.View;
import android.view.Window;
import android.view.WindowManager.LayoutParams;
import android.widget.FrameLayout;
import android.widget.FrameLayout.LayoutParams;
import com.google.android.m4b.maps.p.a;

@TargetApi(11)
public class t extends FrameLayout
{
  private a a;
  private Dialog b;
  private IBinder c;
  private int d;
  private int e;
  private int f;
  private int g;
  private int h = 0;
  private int i = 0;
  private int j = 0;
  private int k = 0;
  private Handler l = new Handler(Looper.getMainLooper());

  static
  {
    t.class.getSimpleName();
  }

  public t(Context paramContext, View paramView)
  {
    super(paramContext);
    addView(paramView, new FrameLayout.LayoutParams(-1, -1));
    a();
  }

  private void a()
  {
    if (Looper.getMainLooper() != Looper.myLooper())
      this.l.post(new Runnable()
      {
        public final void run()
        {
          t.a(t.this);
        }
      });
    while (this.c == null)
      return;
    Window localWindow;
    WindowManager.LayoutParams localLayoutParams;
    if (this.b == null)
    {
      this.b = new Dialog(getContext(), 16973914);
      localWindow = this.b.getWindow();
      localLayoutParams = localWindow.getAttributes();
      localLayoutParams.token = this.c;
      localLayoutParams.gravity = 51;
      localLayoutParams.softInputMode = 32;
      localLayoutParams.type = 1001;
      localLayoutParams.flags = 16908808;
      this.b.setContentView(this);
    }
    while (true)
    {
      localLayoutParams.x = this.d;
      localLayoutParams.y = this.e;
      localLayoutParams.width = this.f;
      localLayoutParams.height = this.g;
      localWindow.setAttributes(localLayoutParams);
      this.b.show();
      requestLayout();
      return;
      localWindow = this.b.getWindow();
      localLayoutParams = localWindow.getAttributes();
    }
  }

  protected void onDraw(Canvas paramCanvas)
  {
    super.onDraw(paramCanvas);
    if (this.a != null);
    try
    {
      this.a.a();
      return;
    }
    catch (RemoteException localRemoteException)
    {
      localRemoteException.printStackTrace();
    }
  }

  protected void onMeasure(int paramInt1, int paramInt2)
  {
    super.onMeasure(this.h, this.i);
    int m = getMeasuredWidth();
    int n = getMeasuredHeight();
    if ((this.j != m) || (this.k != n))
    {
      this.j = m;
      this.k = n;
      this.f = this.j;
      this.g = this.k;
      a();
      if (this.a == null);
    }
    try
    {
      this.a.a(this.j, this.k);
      return;
    }
    catch (RemoteException localRemoteException)
    {
      localRemoteException.printStackTrace();
    }
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.google.android.m4b.maps.bu.t
 * JD-Core Version:    0.6.2
 */