Fix broken attribution of mount events
Summary: The string were out of sync so using the constants instead Reviewed By: fabiocarballo Differential Revision: D49414046 fbshipit-source-id: 5d61831505e5d7ecec3d5c9717d4549ba4b291a8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b6f7d4c56f
commit
d7f8ed5d81
@@ -20,6 +20,7 @@ import com.facebook.litho.MatrixDrawable
|
||||
import com.facebook.litho.debug.LithoDebugEvent
|
||||
import com.facebook.litho.widget.TextDrawable
|
||||
import com.facebook.rendercore.debug.DebugEvent
|
||||
import com.facebook.rendercore.debug.DebugEventAttribute
|
||||
import com.facebook.rendercore.debug.DebugEventBus
|
||||
import com.facebook.rendercore.debug.DebugEventSubscriber
|
||||
import com.facebook.rendercore.debug.DebugMarkerEvent
|
||||
@@ -77,13 +78,13 @@ object UIDebuggerLithoSupport {
|
||||
val treeId = event.renderStateId.toIntOrNull() ?: -1
|
||||
|
||||
val globalKey =
|
||||
event.attributeOrNull<String>("Key")?.let {
|
||||
event.attributeOrNull<String>(DebugEventAttribute.Key)?.let {
|
||||
DebugComponent.generateGlobalKey(treeId, it).hashCode()
|
||||
}
|
||||
val duration = event.attributeOrNull<Duration>("duration")
|
||||
val duration = event.attributeOrNull<Duration>(DebugEventAttribute.Duration)
|
||||
|
||||
val attributes = mutableMapOf<String, String>()
|
||||
val source = event.attributeOrNull<String>("source")
|
||||
val source = event.attributeOrNull<String>(DebugEventAttribute.Source)
|
||||
if (source != null) {
|
||||
attributes["source"] = source
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user