45

在我的应用程序中,我在 android webview 中加载了 MVC 页面。MVC 页面有两个用于用户名和密码的文本编辑器。在专注于文本框时,我收到警告:m_mainFrame->editor()->hasComposition not.

为什么我会收到此警告?

注意:将 android 从2.1升级到2.3.6后出现此错误

日志:

08-21 12:10:21.269: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:21.669: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:21.699: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:21.709: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:22.169: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:22.199: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:22.209: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:22.239: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:22.259: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:22.739: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:22.769: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:22.939: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:22.959: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:23.429: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:23.459: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:23.479: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:23.799: V/webview(2928):  singleCursorHandlerTouchEvent -getEditableSupport  FASLE 
08-21 12:10:23.929: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:23.949: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:24.149: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:24.239: V/webview(2928): OnSizeChanged: Enter 
08-21 12:10:24.269: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:24.319: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:24.339: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:24.469: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:24.479: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:26.969: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:26.989: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:27.139: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:27.299: V/webview(2928):  singleCursorHandlerTouchEvent -getEditableSupport  FASLE 
08-21 12:10:27.319: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:27.349: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:27.379: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 
08-21 12:10:27.539: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not
4

2 回答 2

2

这不是警告也不是错误,只是每次调用 drawContentComposition 时显示的调试消息。我想它表明 hasComposition 的值是错误的。

你不能做任何事情来避免它,所以它不应该打扰你......好吧,显然,在我看来。

于 2013-05-14T15:33:14.000 回答
1

由于底层 WebKit 逻辑,您会将此消息发送到您的日志 - 应该有一些成员函数检查主框架中是否有任何组合并将其结果发布到日志,就是这样。你不应该担心它。

于 2013-03-26T11:44:15.473 回答