MCPcopy Create free account
hub / github.com/Snapchat/Valdi / onNextLayout

Method onNextLayout

valdi/src/valdi/android/NativeBridge.cpp:792–805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790 if (viewNode == nullptr) {
791 return 0;
792 }
793
794 jint handled = 0;
795
796 auto* viewNodeTree = viewNode->getViewNodeTree();
797
798 if (viewNodeTree == nullptr) {
799 // TODO: is this a valid state?
800 return 0;
801 }
802
803 viewNodeTree->withLock([&]() {
804 auto& viewTransactionScope = viewNodeTree->getCurrentViewTransactionScope();
805 if (action == kActionEnsureFrameIsVisibleWithinParentScrolls) {
806 auto animated = static_cast<bool>(param1);
807 viewNode->ensureFrameIsVisibleWithinParentScrolls(viewTransactionScope, animated);
808 handled = 0;

Callers

nothing calls this directly

Calls 5

getViewNodeTreeFunction · 0.85
JavaEnvClass · 0.50
lockMethod · 0.45
getFunctionRefMethod · 0.45

Tested by

no test coverage detected