-
Notifications
You must be signed in to change notification settings - Fork 739
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 a banner in timeline while location sharing service is running #5660
Conversation
Unit Test Results110 files ±0 110 suites ±0 1m 18s ⏱️ +3s Results for commit 5ec6385. ± Comparison against base commit 539d198. This pull request removes 2 and adds 2 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
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 PR, I added some comments. Keep in mind TimelineFragment
is also used for threads, so you should handle that appropriately. You might want to disable that on threads? or an other business request.
@@ -482,6 +482,8 @@ class TimelineFragment @Inject constructor( | |||
RoomDetailViewEvents.StopChatEffects -> handleStopChatEffects() | |||
is RoomDetailViewEvents.DisplayAndAcceptCall -> acceptIncomingCall(it) | |||
RoomDetailViewEvents.RoomReplacementStarted -> handleRoomReplacement() | |||
RoomDetailViewEvents.ShowLocationSharingIndicator -> handleShowLocationSharingIndicator() |
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.
To simplify the code and not to add more lines in TImelineFragment while its already huge, I would have one Event ShowLocationSharingIndicator
instead of two:
handleShowLocationSharingIndicator(show: Boolean){
views.locationLiveStatusIndicator.isVisible = show
}
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.
Right, as we discussed internally. Done.
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.
Nice!
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 change, please check my comment about threads, while they use the same timeline and maybe will interfere with the location service.
Thank you, we will create another PR to support threads. |
We have already implemented the banner previously. This PR handles the visibility of the banner by observing the location service lifecycle.