-
Notifications
You must be signed in to change notification settings - Fork 332
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
Add share button to the Session Detail Screen #578
Conversation
session.room.name, | ||
speakers) | ||
val url = resources.getString(R.string.session_share_url, sessionId) | ||
putExtra(Intent.EXTRA_TEXT, "$title\n$url") |
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.
example
ConstraintLayout, now and future at Room 6 by Nicolas Roard, John Hoford, thagikura
https://droidkaigi.jp/2018/timetable?session=16988
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.
[Q] Should I add a hashtag or any text?
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.
Please wait. I will talk with staff🙏
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.
The staff has decided to #droidkaigi_room1
...#droidkaigi_room7
#droidkaigi_hall
.
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.
🙏
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 added
e.g.
ConstraintLayout, now and future (Nicolas Roard, John Hoford, thagikura) #droidkaigi_room6
https://droidkaigi.jp/2018/timetable/?session=16988
* | ||
* e.g. #droidkaigi_hall, #droidkaigi_room1, ... | ||
* | ||
* @param roomName The Room name |
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.
Unnecessary space(s) |
* e.g. #droidkaigi_hall, #droidkaigi_room1, ... | ||
* | ||
* @param roomName The Room name | ||
* @return A hash tag |
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.
Unnecessary space(s) |
@@ -77,13 +78,22 @@ class SessionDetailFragment : Fragment(), Injectable { | |||
binding.toolbar.setNavigationOnClickListener { activity?.finish() } | |||
} | |||
|
|||
private fun bindSession(session: Session.SpeechSession) { | |||
private fun bindSession(session: Session.SpeechSession, sessionId: String) { |
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 you can get sessionId by session.id
.
What do you think? 👀
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.
Oops, I'll fix
I think two FABs are bad. Because FAB should be primary action. 👀 I think we should use menu icon. |
private fun generateSharedText(session: Session.SpeechSession, sessionId: String): String { | ||
var speakerList = listOf<String>() | ||
session.speakers.forEach { speakerList += it.name } | ||
val speakers = speakerList.joinToString(", ") |
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.
How about this? 👀
session.speakers.map { it.name }.joinToString(", ")
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.
Thanks for suggestion. I'll simplify.
@@ -37,6 +37,11 @@ | |||
<string name="session_finished">Finished Session</string> | |||
<string name="session_go_to_feedback">Go To Feedback</string> | |||
<string name="session_current_badge" translatable="false">NOW!</string> | |||
<string name="session_share_url" translatable="false">https://droidkaigi.jp/2018/timetable?session=%s</string> |
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.
Thanks for translatable="false"
👍
I agree. I'll use menu icon instead of FAB. |
Issue
Overview (Required)
Links
Screenshot