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 4af995a93..cc7bc3cfb 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,7 +20,6 @@ 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 @@ -78,13 +77,16 @@ object UIDebuggerLithoSupport { val treeId = event.renderStateId.toIntOrNull() ?: -1 val globalKey = - event.attributeOrNull(DebugEventAttribute.Key)?.let { + event.attributeOrNull("key")?.let { DebugComponent.generateGlobalKey(treeId, it).hashCode() } - val duration = event.attributeOrNull(DebugEventAttribute.Duration) + val duration = event.attributeOrNull("duration") val attributes = mutableMapOf() - val source = event.attributeOrNull(DebugEventAttribute.Source) + val source = + event.attributeOrNull( + "source") // todo replace magic strings with DebugEventAttribute.Source once + // litho open source is released if (source != null) { attributes["source"] = source }