diff --git a/driver/js/src/modules/ui_manager_module.cc b/driver/js/src/modules/ui_manager_module.cc index 5b98f742464..1a4339a2d75 100644 --- a/driver/js/src/modules/ui_manager_module.cc +++ b/driver/js/src/modules/ui_manager_module.cc @@ -67,6 +67,8 @@ void UIManagerModule::CallUIFunction(CallbackInfo& info, void* data) { name = name_value->ToStringChecked(); } + FOOTSTONE_LOG(ERROR) << "xxx call fix, UIManagerModule::CallUIFunction, name: " << name; + std::unordered_map> param; DomArgument param_value = *(hippy::ToDomArgument(context, info[2])); hippy::CallFunctionCallback cb = nullptr; @@ -96,6 +98,9 @@ void UIManagerModule::CallUIFunction(CallbackInfo& info, void* data) { HippyValue value; bool flag = argument->ToObject(value); if (flag) { + + FOOTSTONE_LOG(ERROR) << "xxx call fix, UIManagerModule::CallUIFunction, callback to js"; + auto param = hippy::CreateCtxValue( context, std::make_shared(std::move(value))); if (param) { @@ -119,6 +124,8 @@ void UIManagerModule::CallUIFunction(CallbackInfo& info, void* data) { if (!dom_manager) { return; } + + FOOTSTONE_LOG(ERROR) << "xxx call fix, UIManagerModule::CallUIFunction, to dom_manager"; dom_manager->CallFunction(scope->GetRootNode(), static_cast(id), name, param_value, cb); } diff --git a/renderer/native/android/src/main/java/com/tencent/mtt/hippy/uimanager/HippyViewController.java b/renderer/native/android/src/main/java/com/tencent/mtt/hippy/uimanager/HippyViewController.java index d6bcb0fa233..d3f63663359 100644 --- a/renderer/native/android/src/main/java/com/tencent/mtt/hippy/uimanager/HippyViewController.java +++ b/renderer/native/android/src/main/java/com/tencent/mtt/hippy/uimanager/HippyViewController.java @@ -582,10 +582,19 @@ private void measureInWindow(@NonNull View view, @NonNull Promise promise) { outputBuffer[1] -= statusBarHeight; } } catch (Exception e) { + LogUtils.e(TAG, "xxx call fix, measureInWindow, exception: " + e.getMessage()); + promise.resolve( "An exception occurred when get view location on screen: " + e.getMessage()); return; } + + LogUtils.e(TAG, "xxx call fix, measureInWindow: x=" + outputBuffer[0] + + ", y=" + outputBuffer[1] + + ", width=" + view.getWidth() + + ", height=" + view.getHeight() + + ", statusBarHeight=" + statusBarHeight); + LogUtils.d(TAG, "measureInWindow: x=" + outputBuffer[0] + ", y=" + outputBuffer[1] + ", width=" + view.getWidth()