diff --git a/android/plugins/jetpack-compose/src/main/java/com/facebook/flipper/plugins/jetpackcompose/UIDebuggerComposeSupport.kt b/android/plugins/jetpack-compose/src/main/java/com/facebook/flipper/plugins/jetpackcompose/UIDebuggerComposeSupport.kt index 2b9518d291f..b77d08bb273 100644 --- a/android/plugins/jetpack-compose/src/main/java/com/facebook/flipper/plugins/jetpackcompose/UIDebuggerComposeSupport.kt +++ b/android/plugins/jetpack-compose/src/main/java/com/facebook/flipper/plugins/jetpackcompose/UIDebuggerComposeSupport.kt @@ -51,7 +51,7 @@ object UIDebuggerComposeSupport { private fun addCustomActions(context: UIDContext) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { - context.addCustomActionGroup("Compose", ActionIcon.Local("icons/compose-logo.png")) { + context.addCustomActionGroup("Compose options", ActionIcon.Local("icons/compose-logo.png")) { booleanAction("Hide System Nodes", AbstractComposeViewDescriptor.hideSystemNodes) { newValue -> AbstractComposeViewDescriptor.hideSystemNodes = newValue diff --git a/android/src/main/java/com/facebook/flipper/plugins/uidebugger/UIDebuggerFlipperPlugin.kt b/android/src/main/java/com/facebook/flipper/plugins/uidebugger/UIDebuggerFlipperPlugin.kt index f2119a5cfcb..c489575ee8e 100644 --- a/android/src/main/java/com/facebook/flipper/plugins/uidebugger/UIDebuggerFlipperPlugin.kt +++ b/android/src/main/java/com/facebook/flipper/plugins/uidebugger/UIDebuggerFlipperPlugin.kt @@ -74,7 +74,7 @@ class UIDebuggerFlipperPlugin(val context: UIDContext) : FlipperPlugin { } } - connection.receive("customActionGroup") { args, responder -> + connection.receive("onCustomAction") { args, responder -> try { val customActionGroupIndex = args.getInt("customActionGroupIndex") val customAction = context.customActionGroups[customActionGroupIndex] @@ -87,7 +87,7 @@ class UIDebuggerFlipperPlugin(val context: UIDContext) : FlipperPlugin { responder.success() } is Action.BooleanAction -> { - val newBooleanActionValue = args.getBoolean("newBooleanActionValue") + val newBooleanActionValue = args.getBoolean("value") val result = item.action(newBooleanActionValue) context.decorViewTracker.requestTraversal() responder.success(FlipperObject.Builder().put("result", result).build()) diff --git a/android/src/main/java/com/facebook/flipper/plugins/uidebugger/model/CustomActions.kt b/android/src/main/java/com/facebook/flipper/plugins/uidebugger/model/CustomActions.kt index bf97568ed9c..2e72e91aed9 100644 --- a/android/src/main/java/com/facebook/flipper/plugins/uidebugger/model/CustomActions.kt +++ b/android/src/main/java/com/facebook/flipper/plugins/uidebugger/model/CustomActions.kt @@ -31,7 +31,7 @@ sealed interface Action { @SerialName("BooleanAction") data class BooleanAction( val title: String, - val initialValue: Boolean, + val value: Boolean, @Transient val action: (Boolean) -> Boolean = { it }, ) : Action }