-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: master
Are you sure you want to change the base?
Dagger #10
Conversation
…ple dependency holder. Basic working implmenetation
} 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() | ||
} |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) | ||
} |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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
No description provided.