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

Show notification when my session starts #244

Merged
merged 11 commits into from
Jan 18, 2018

Conversation

takahirom
Copy link
Member

@takahirom takahirom commented Jan 16, 2018

Issue

Overview (Required)

  • Title says everything 😄
  • I can't fix notification icon on this pull request.(I will create that issue)
  • If I opened session detail, I can't go that session detail.(I will create that issue)

Screenshot

@takahirom takahirom added this to the 1.0.0(〜01/22) milestone Jan 16, 2018
@takahirom takahirom changed the title [WIP]Show notification when my session starts Show notification when my session starts Jan 17, 2018
@takahirom takahirom force-pushed the show-notification-when-mysession-starts branch from ebfdb02 to 1733377 Compare January 17, 2018 17:22
@konifar
Copy link
Contributor

konifar commented Jan 17, 2018

👍

val pendingIntent = TaskStackBuilder
.create(context!!)
.addNextIntent(MainActivity.createIntent(context))
.addNextIntent(SessionDetailActivity.createIntent(context, sessionId))
Copy link
Contributor

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() {
Copy link
Contributor

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)
Copy link
Member Author

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

@konifar
Copy link
Contributor

konifar commented Jan 18, 2018

LGTM!

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.

Display notification when my session starts
2 participants