当我们从任何屏幕返回时,TYPE_WINDOW_STATE_CHANGED在我的辅助功能服务中都两次调用。
EventType: TYPE_WINDOW_STATE_CHANGED; EventTime: 451114743; PackageName: com.motorola.launcher3; MovementGranularity: 0; Action: 0 [ ClassName: com.android.launcher3.CustomizationPanelLauncher; Text: [Home screen 3 of 13]; ContentDescription: null; ItemCount: -1; CurrentItemIndex: -1; IsEnabled: true; IsPassword: false; IsChecked: false; IsFullScreen: 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
EventType: TYPE_WINDOW_STATE_CHANGED; EventTime: 451114877; PackageName: com.motorola.launcher3; MovementGranularity: 0; Action: 0 [ ClassName: com.android.launcher3.CustomizationPanelLauncher; Text: [Home screen 3 of 13]; ContentDescription: null; ItemCount: -1; CurrentItemIndex: -1; IsEnabled: true; IsPassword: false; IsChecked: false; IsFullScreen: 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
这是两个事件,当我们从任何屏幕返回时都会同时触发。