Auto.js icon indicating copy to clipboard operation
Auto.js copied to clipboard

百度输入法影响当前应用报名和当前活动

Open JChunyu opened this issue 2 years ago • 0 comments

当手机使用百度输入法时,切换到桌面,但是当前页面信息展示为 com.baidu.input 的相关内容。在此过程中未展开过键盘。 屏幕截图 可以查看相关情况。

过滤 TYPE_WINDOW_STATE_CHANGED 类型事件发现,百度输入法会影响该事件类型的监听内容,日志如下:

2022-08-17 12:15:40.231 D/ChunyuEvent: EventType: TYPE_WINDOW_STATE_CHANGED; EventTime: 135329631; PackageName: com.baidu.input; MovementGranularity: 0; Action: 0; ContentChangeTypes: []; WindowChangeTypes: [] [ ClassName: android.widget.RelativeLayout; Text: []; ContentDescription: null; ItemCount: -1; CurrentItemIndex: -1; Enabled: true; Password: false; Checked: false; FullScreen: false; Scrollable: false; BeforeText: null; FromIndex: -1; ToIndex: -1; ScrollX: -1; ScrollY: -1; MaxScrollX: -1; MaxScrollY: -1; AddedCount: -1; RemovedCount: -1; ParcelableData: null ]; recordCount: 0

正常的 Log 信息应该是 Launcher :

2022-08-17 14:20:56.490 D/ChunyuEvent: EventType: TYPE_WINDOW_STATE_CHANGED; EventTime: 142845897; PackageName: com.oppo.launcher; MovementGranularity: 0; Action: 0; ContentChangeTypes: []; WindowChangeTypes: [] [ ClassName: com.oppo.launcher.Launcher; Text: [第 6 页,共 7 页]; ContentDescription: null; ItemCount: -1; CurrentItemIndex: -1; Enabled: true; Password: false; Checked: false; FullScreen: true; Scrollable: false; BeforeText: null; FromIndex: -1; ToIndex: -1; ScrollX: -1; ScrollY: -1; MaxScrollX: -1; MaxScrollY: -1; AddedCount: -1; RemovedCount: -1; ParcelableData: null ]; recordCount: 0

请教大佬,有没有提高精准度的方法?

JChunyu avatar Aug 17 '22 06:08 JChunyu