From e05a3bdeca2304635e1c31326d21934583319be2 Mon Sep 17 00:00:00 2001 From: Mihaela Ogrezeanu Date: Tue, 10 Sep 2019 06:54:37 -0700 Subject: [PATCH] Add state update attribution Summary: Show the section which triggered the state update in the tree hierarchy. We can't use the attribution param that was being passed from SectionTree because it contains the key of the section, not the global key. Reviewed By: pasqualeanatriello Differential Revision: D17161730 fbshipit-source-id: bae5e509c378ffdf210acac6564212c873c5855b --- .../facebook/flipper/plugins/sections/ChangesetDebug.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/facebook/flipper/plugins/sections/ChangesetDebug.java b/android/src/main/java/com/facebook/flipper/plugins/sections/ChangesetDebug.java index 2f088dde8..bae10829e 100644 --- a/android/src/main/java/com/facebook/flipper/plugins/sections/ChangesetDebug.java +++ b/android/src/main/java/com/facebook/flipper/plugins/sections/ChangesetDebug.java @@ -12,6 +12,7 @@ import com.facebook.flipper.core.FlipperObject; import com.facebook.litho.sections.Change; import com.facebook.litho.sections.ChangesInfo; import com.facebook.litho.sections.ChangesetDebugConfiguration; +import com.facebook.litho.sections.ChangesetDebugConfiguration.ChangesetDebugInfo; import com.facebook.litho.sections.ChangesetDebugConfiguration.ChangesetDebugListener; import com.facebook.litho.sections.Section; import com.facebook.litho.sections.SectionsLogEventUtils; @@ -50,7 +51,12 @@ public class ChangesetDebug implements ChangesetDebugListener { sSectionsFlipperPlugin = listener; } - @Override + public void onChangesetApplied( + Section rootSection, + ChangesInfo changesInfo, + String surfaceId, + ChangesetDebugInfo changesetDebugInfo) {} + public void onChangesetApplied( Section rootSection, Section oldRootSection,