Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/6625.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Location sharing] - OnTap on the top live status bar, display the expanded map view
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,9 @@ class TimelineFragment @Inject constructor(
views.locationLiveStatusIndicator.stopButton.debouncedClicks {
timelineViewModel.handle(RoomDetailAction.StopLiveLocationSharing)
}
views.locationLiveStatusIndicator.root.debouncedClicks {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not tested, but is it mandatory to use root?

I was wondering if views.locationLiveStatusIndicator.debouncedClicks { would work the same way.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes indeed, the root is not needed, I removed it.

navigateToLocationLiveMap()
}
}

private fun joinJitsiRoom(jitsiWidget: Widget, enableVideo: Boolean) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package im.vector.app.features.location.live
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.Button
import androidx.constraintlayout.widget.ConstraintLayout
import im.vector.app.databinding.ViewLocationLiveStatusBinding
Expand All @@ -34,6 +35,9 @@ class LocationLiveStatusView @JvmOverloads constructor(
this
)

val root: View
get() = binding.root

val stopButton: Button
get() = binding.locationLiveStatusStop
}