diff --git a/android/plugins/litho/src/main/java/com/facebook/flipper/plugins/uidebugger/litho/UIDebuggerLithoSupport.kt b/android/plugins/litho/src/main/java/com/facebook/flipper/plugins/uidebugger/litho/UIDebuggerLithoSupport.kt index 61c7aae7a..4af995a93 100644 --- a/android/plugins/litho/src/main/java/com/facebook/flipper/plugins/uidebugger/litho/UIDebuggerLithoSupport.kt +++ b/android/plugins/litho/src/main/java/com/facebook/flipper/plugins/uidebugger/litho/UIDebuggerLithoSupport.kt @@ -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("Key")?.let { + event.attributeOrNull(DebugEventAttribute.Key)?.let { DebugComponent.generateGlobalKey(treeId, it).hashCode() } - val duration = event.attributeOrNull("duration") + val duration = event.attributeOrNull(DebugEventAttribute.Duration) val attributes = mutableMapOf() - val source = event.attributeOrNull("source") + val source = event.attributeOrNull(DebugEventAttribute.Source) if (source != null) { attributes["source"] = source }