NotLoggedInKeyboard.java 2.33 KB
package com.bitstrips.imoji.keyboard;

import android.content.Context;
import android.content.Intent;
import android.graphics.PorterDuff.Mode;
import android.graphics.PorterDuffColorFilter;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.FrameLayout.LayoutParams;
import android.widget.ImageButton;
import com.bitstrips.imoji.ui.LoginActivity;

public class NotLoggedInKeyboard
  extends FrameLayout
{
  ImageButton a;
  Button b;
  
  public NotLoggedInKeyboard(Context paramContext)
  {
    super(paramContext);
    setUp(paramContext);
  }
  
  public NotLoggedInKeyboard(Context paramContext, AttributeSet paramAttributeSet)
  {
    super(paramContext, paramAttributeSet);
    setUp(paramContext);
  }
  
  public NotLoggedInKeyboard(Context paramContext, AttributeSet paramAttributeSet, int paramInt)
  {
    super(paramContext, paramAttributeSet, paramInt);
    setUp(paramContext);
  }
  
  private void setUp(Context paramContext)
  {
    paramContext = (FrameLayout)LayoutInflater.from(paramContext).inflate(2130903170, this);
    this.a = ((ImageButton)paramContext.findViewById(2131689888));
    this.a.getDrawable().setColorFilter(new PorterDuffColorFilter(-1, PorterDuff.Mode.SRC_ATOP));
    this.b = ((Button)paramContext.findViewById(2131689889));
    this.a.setOnClickListener(new View.OnClickListener()
    {
      public final void onClick(View paramAnonymousView)
      {
        BitmojiKeyboard.a(paramAnonymousView.getContext());
      }
    });
    this.b.setOnClickListener(new View.OnClickListener()
    {
      public final void onClick(View paramAnonymousView)
      {
        paramAnonymousView = paramAnonymousView.getContext();
        paramAnonymousView.startActivity(new Intent(paramAnonymousView, LoginActivity.class).addFlags(268435456));
      }
    });
  }
  
  protected void onAttachedToWindow()
  {
    super.onAttachedToWindow();
    setLayoutParams(new FrameLayout.LayoutParams(-1, -1));
    setBackgroundColor(-16711681);
  }
}


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