Removing non necessary root binding

This commit is contained in:
Maxime NATUREL 2022-07-25 15:37:11 +02:00
parent 03ebad14c4
commit 989c2ee967
2 changed files with 1 additions and 5 deletions

View File

@ -859,7 +859,7 @@ class TimelineFragment @Inject constructor(
views.locationLiveStatusIndicator.stopButton.debouncedClicks { views.locationLiveStatusIndicator.stopButton.debouncedClicks {
timelineViewModel.handle(RoomDetailAction.StopLiveLocationSharing) timelineViewModel.handle(RoomDetailAction.StopLiveLocationSharing)
} }
views.locationLiveStatusIndicator.root.debouncedClicks { views.locationLiveStatusIndicator.debouncedClicks {
navigateToLocationLiveMap() navigateToLocationLiveMap()
} }
} }

View File

@ -19,7 +19,6 @@ package im.vector.app.features.location.live
import android.content.Context import android.content.Context
import android.util.AttributeSet import android.util.AttributeSet
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.View
import android.widget.Button import android.widget.Button
import androidx.constraintlayout.widget.ConstraintLayout import androidx.constraintlayout.widget.ConstraintLayout
import im.vector.app.databinding.ViewLocationLiveStatusBinding import im.vector.app.databinding.ViewLocationLiveStatusBinding
@ -35,9 +34,6 @@ class LocationLiveStatusView @JvmOverloads constructor(
this this
) )
val root: View
get() = binding.root
val stopButton: Button val stopButton: Button
get() = binding.locationLiveStatusStop get() = binding.locationLiveStatusStop
} }