-
Notifications
You must be signed in to change notification settings - Fork 333
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
Show notification when my session starts #244
Conversation
ebfdb02
to
1733377
Compare
👍 |
val pendingIntent = TaskStackBuilder | ||
.create(context!!) | ||
.addNextIntent(MainActivity.createIntent(context)) | ||
.addNextIntent(SessionDetailActivity.createIntent(context, sessionId)) |
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.
📝
if (value) register() else unregister() | ||
} | ||
|
||
private fun register() { |
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.
🙋
I thought it's better to pass Session.SpeechSession
as method parameter here and instantiate this class by dagger injection. Then you can inject SessionAlarm in ViewModel class.
What do you think?
.create(context!!) | ||
.addNextIntent(MainActivity.createIntent(context)) | ||
.addNextIntent(SessionDetailActivity.createIntent(context, sessionId)) | ||
.getPendingIntent(1, PendingIntent.FLAG_UPDATE_CURRENT) |
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.
// I think we should change this id each notification
LGTM! |
Issue
Overview (Required)
Screenshot