Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dagger #10

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Dagger #10

wants to merge 10 commits into from

Conversation

ManojMadanmohan
Copy link
Owner

No description provided.

} else
{
Toast.makeText(applicationContext, "In Testing mode", Toast.LENGTH_LONG).show()
}
if(Constants.isFirebaseAvailable(this))
{
FirebaseDatabase.getInstance().setPersistenceEnabled(true);
LinkQueueHandler.getInstance(this).runQueueListener()
_linkQueueHandler.runQueueListener()
}

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

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)
}

Choose a reason for hiding this comment

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

inject presenter

@@ -67,9 +78,9 @@ class DeepLinkHistoryActivity: AppCompatActivity() {
_deepLinkInput = findViewById(R.id.deep_link_input) as EditText
_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)

Choose a reason for hiding this comment

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

inject

if (Constants.isFirebaseAvailable(this@DeepLinkHistoryActivity)) {
val userId = ProfileFeature.getInstance(this@DeepLinkHistoryActivity).getUserId()
val userId = _profileFeature.getUserId()

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