p.java 2.33 KB
package com.instabug.library;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.instabug.library.util.InstabugSDKLogger;
import com.instabug.library.util.c;
import com.instabug.library.util.f;
import com.instabug.library.util.l;

public class p
  extends h
{
  private a a;
  
  protected void a() {}
  
  protected void a(Bundle paramBundle) {}
  
  protected int b()
  {
    return R.layout.instabug_lyt_success;
  }
  
  protected void b(Bundle paramBundle) {}
  
  protected String c()
  {
    return getString(R.string.instabug_str_empty);
  }
  
  public void onAttach(Activity paramActivity)
  {
    super.onAttach(paramActivity);
    try
    {
      this.a = ((a)paramActivity);
      return;
    }
    catch (ClassCastException localClassCastException)
    {
      throw new ClassCastException(paramActivity.toString() + " must implement InstabugSuccessFragment.Callbacks");
    }
  }
  
  public void onDetach()
  {
    super.onDetach();
    this.a = null;
  }
  
  public void onViewCreated(View paramView, Bundle paramBundle)
  {
    super.onViewCreated(paramView, paramBundle);
    IBGCustomTextPlaceHolder.Key localKey = IBGCustomTextPlaceHolder.Key.REPORT_SUCCESSFULLY_SENT;
    String str = new f(getActivity().getApplicationContext()).a();
    if (str == null) {
      InstabugSDKLogger.w(this, "It seems app:name isn't defined in your manifest. Using a generic name instead");
    }
    int i = R.string.instabug_str_thank_you;
    paramBundle = str;
    if (str == null) {
      paramBundle = "App";
    }
    paramBundle = l.a(localKey, getString(i, new Object[] { paramBundle }));
    ((TextView)paramView.findViewById(R.id.instabug_txt_success_note)).setText(paramBundle);
    c.a((ImageView)paramView.findViewById(R.id.instabug_img_success));
    new Handler().postDelayed(new Runnable()
    {
      public final void run()
      {
        if (p.a(p.this) != null) {
          p.a(p.this).e();
        }
      }
    }, 3000L);
  }
  
  public static abstract interface a
  {
    public abstract void e();
  }
}


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