ImojiApplication.java 2.15 KB
package com.bitstrips.imoji;

import android.app.Activity;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.os.StrictMode;
import android.os.StrictMode.VmPolicy.Builder;
import android.preference.Preference;
import android.support.multidex.MultiDexApplication;
import android.support.v4.app.Fragment;
import android.view.View;
import com.bitstrips.imoji.injection.ApplicationGraph;
import com.bitstrips.imoji.manager.TOUManager;
import com.crashlytics.android.Crashlytics;
import dagger.ObjectGraph;
import io.fabric.sdk.android.Fabric;
import io.fabric.sdk.android.Kit;
import javax.inject.Inject;

public class ImojiApplication
  extends MultiDexApplication
  implements InjectorApplication
{
  @Inject
  TOUManager a;
  
  protected void initModules()
  {
    ObjectGraph localObjectGraph = ObjectGraph.create(new Object[] { new ImojiModule(this) });
    localObjectGraph.injectStatics();
    ApplicationGraph.setObjectGraph(localObjectGraph);
  }
  
  public void inject(Activity paramActivity)
  {
    ApplicationGraph.getObjectGraph().inject(paramActivity);
  }
  
  public void inject(Service paramService)
  {
    ApplicationGraph.getObjectGraph().inject(paramService);
  }
  
  public void inject(BroadcastReceiver paramBroadcastReceiver)
  {
    ApplicationGraph.getObjectGraph().inject(paramBroadcastReceiver);
  }
  
  public void inject(Preference paramPreference)
  {
    ApplicationGraph.getObjectGraph().inject(paramPreference);
  }
  
  public void inject(Fragment paramFragment)
  {
    ApplicationGraph.getObjectGraph().inject(paramFragment);
  }
  
  @Deprecated
  public void inject(View paramView)
  {
    ApplicationGraph.getObjectGraph().inject(paramView);
  }
  
  public void onCreate()
  {
    super.onCreate();
    StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().build());
    Fabric.with(this, new Kit[] { new Crashlytics() });
    initModules();
    ApplicationGraph.getObjectGraph().inject(this);
    this.a.initializeReceiver();
  }
}


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