Notification settings. Dev task #76.

This commit is contained in:
akwizgran
2014-03-10 18:00:36 +00:00
parent d151633a60
commit 4560cf17ff
11 changed files with 297 additions and 81 deletions

View File

@@ -60,8 +60,6 @@ public class AndroidModule extends AbstractModule {
protected void configure() {
bind(AndroidExecutor.class).to(AndroidExecutorImpl.class).in(
Singleton.class);
bind(AndroidNotificationManager.class).to(
AndroidNotificationManagerImpl.class).in(Singleton.class);
bind(ReferenceManager.class).to(ReferenceManagerImpl.class).in(
Singleton.class);
bind(UiCallback.class).toInstance(uiCallback);
@@ -101,4 +99,12 @@ public class AndroidModule extends AbstractModule {
}
};
}
@Provides @Singleton
AndroidNotificationManager getAndroidNotificationManager(
LifecycleManager lifecycleManager,
AndroidNotificationManagerImpl notificationManager) {
lifecycleManager.register(notificationManager);
return notificationManager;
}
}