mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 20:18:36 +00:00
Add log-line to see how often setTypists is called.
This commit is contained in:
@@ -16,6 +16,7 @@ import androidx.core.graphics.withTranslation
|
||||
import androidx.core.view.children
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import androidx.recyclerview.widget.RecyclerView.ItemDecoration
|
||||
import org.signal.core.util.logging.Log
|
||||
import org.thoughtcrime.securesms.R
|
||||
import org.thoughtcrime.securesms.components.ConversationTypingView
|
||||
import org.thoughtcrime.securesms.mms.GlideRequests
|
||||
@@ -29,6 +30,10 @@ class TypingIndicatorDecoration(
|
||||
private val rootView: RecyclerView
|
||||
) : ItemDecoration() {
|
||||
|
||||
companion object {
|
||||
private val TAG = Log.tag(TypingIndicatorDecoration::class.java)
|
||||
}
|
||||
|
||||
private val typingView: ConversationTypingView by lazy(LazyThreadSafetyMode.NONE) {
|
||||
LayoutInflater.from(context).inflate(R.layout.conversation_typing_view, rootView, false) as ConversationTypingView
|
||||
}
|
||||
@@ -87,6 +92,8 @@ class TypingIndicatorDecoration(
|
||||
hasWallpaper: Boolean,
|
||||
isReplacedByIncomingMessage: Boolean
|
||||
) {
|
||||
Log.d(TAG, "setTypists: Updating typists: ${typists.size} $isGroupThread $hasWallpaper $isReplacedByIncomingMessage")
|
||||
|
||||
val isEdge = displayIndicator != typists.isNotEmpty()
|
||||
displayIndicator = typists.isNotEmpty()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user