g.java 1.39 KB
package com.instabug.library;

import android.app.IntentService;
import android.content.Intent;
import com.instabug.library.e.a;
import com.instabug.library.util.InstabugSDKLogger;

public abstract class g
  extends IntentService
{
  public g()
  {
    super(g.class.getSimpleName());
    setIntentRedelivery(true);
  }
  
  protected abstract boolean a();
  
  public abstract void b()
    throws Exception;
  
  public void onCreate()
  {
    super.onCreate();
    InstabugSDKLogger.v(this, "New " + getClass().getSimpleName() + " created");
  }
  
  public void onDestroy()
  {
    super.onDestroy();
    InstabugSDKLogger.v(this, getClass().getSimpleName() + " destroyed");
  }
  
  protected void onHandleIntent(Intent paramIntent)
  {
    InstabugSDKLogger.v(this, getClass().getSimpleName() + " started with intent " + paramIntent);
    if ((a()) && (a.a(this))) {
      InstabugSDKLogger.v(this, "Internet is good to go");
    }
    try
    {
      InstabugSDKLogger.v(this, "Starting " + getClass().getSimpleName() + " task");
      b();
      return;
    }
    catch (Exception paramIntent)
    {
      InstabugSDKLogger.d(this, "An error occurred while doing " + getClass().getSimpleName() + "'s required task " + paramIntent);
    }
  }
}


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