ImojiApplication.java
2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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
*/