Merged AppModule and AndroidModule.

This commit is contained in:
akwizgran
2016-04-05 14:16:42 +01:00
parent bbd14f1af4
commit dc1adc21ae
7 changed files with 31 additions and 56 deletions

View File

@@ -55,8 +55,8 @@ public class BriarService extends Service {
public void onCreate() {
super.onCreate();
((BriarApplication) this.getApplication())
.getApplicationComponent().inject(this);
BriarApplication application = (BriarApplication) getApplication();
application.getApplicationComponent().inject(this);
LOG.info("Created");
if (created.getAndSet(true)) {