-
Notifications
You must be signed in to change notification settings - Fork 758
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
Share location with other apps (PSG-242) #6567
Conversation
isFocusable = true | ||
isTouchable = true | ||
elevation = 8f | ||
setBackgroundDrawable(ContextCompat.getDrawable(context, R.drawable.bg_live_location_marker_popup)) |
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.
Can you add the background directly in the view_live_location_marker_popup.xml file ?
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.
It works, thanks, done.
inputMethodMode = INPUT_METHOD_NOT_NEEDED | ||
isFocusable = true | ||
isTouchable = true | ||
elevation = 8f |
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 same for the elevation ? add it directly in the xml file ?
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.
Exactly, done.
var callback: Callback? = null | ||
|
||
init { | ||
contentView = inflater.inflate(R.layout.view_live_location_marker_popup, null, false) |
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 have a warning on Android Studio:
Avoid passing null as the view root (needed to resolve layout parameters on the inflated layout's root element)
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.
Fixed.
|
||
fun show(anchorView: View) { | ||
contentView.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED) | ||
showAsDropDown(anchorView, -contentView.measuredWidth / 2, 0) |
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.
Maybe add a comment to explain the:
-contentView.measuredWidth / 2
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.
Added.
Thanks @Claire1817 for reporting bugs related to marker rendering when the user doesn't have an avatar. #6594 will be fixed in another PR. |
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 the update :)
SonarCloud Quality Gate failed. |
Type of change
Content
Users can now open others' (or their own) live locations with other map applications by tapping the marker of the users. Shared location is the static location at the time users click to share button.
Motivation and context
Screenshots / GIFs
Tests
Tested devices
Checklist