Skip to content

Dagger#10

Open
ManojMadanmohan wants to merge 10 commits intomasterfrom
dagger
Open

Dagger#10
ManojMadanmohan wants to merge 10 commits intomasterfrom
dagger

Conversation

@ManojMadanmohan
Copy link
Copy Markdown
Owner

No description provided.

FirebaseDatabase.getInstance().setPersistenceEnabled(true);
LinkQueueHandler.getInstance(this).runQueueListener()
_linkQueueHandler.runQueueListener()
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check this


fun getProfileFeature(): IProfileFeature

fun getDeepLinkHistoryFeature(): IDeepLinkHistory
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove accessor functions

fun getPresenter(): DeepLinkHistoryPresenter {
return DeepLinkHistoryPresenter(getHistoryUpdateListener())
return DeepLinkHistoryPresenter(getHistoryUpdateListener(), _profileFeature)
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inject presenter

_listView = findViewById(R.id.deep_link_list_view) as ListView
_privacyPolicy = findViewById(R.id.privacy_policy) as TextView
_adapter = DeepLinkListAdapter(ArrayList(), this)
_adapter = DeepLinkListAdapter(ArrayList(), this, _historyFeature)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inject

_fabMenu!!.findViewById<View>(R.id.fab_web).setOnClickListener {
if (Constants.isFirebaseAvailable(this@DeepLinkHistoryActivity)) {
val userId = ProfileFeature.getInstance(this@DeepLinkHistoryActivity).getUserId()
val userId = _profileFeature.getUserId()
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move all feature related code to presenter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants