My widget listens to clicks through the onRecieve()
method. When creating a widget both on the desktop and on the lock screen, everything works, but after a while the widget on the lock screen stops listening to clicks, this is what the logger gives me when clicking on the clickable zone:
03-23 23:39:02.500 2433-2563/? I/InputReader: Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=2657552045000 03-23 23:39:02.500 2433-2562/? I/InputDispatcher: Delivering touch to: action: 0x1 03-23 23:39:02.500 2433-2523/? V/WindowManager: Window{43251dd8 u0 Keyguard}mOrientationRequetedFromKeyguard=true 03-23 23:39:02.505 2433-2523/? D/LockPatternUtils: isPcwEnable = null 03-23 23:39:02.515 2433-2523/? D/PowerManagerService: [api] [s] userActivity : event: 3 flags: 0 (uid: 1000 pid: 2433) 03-23 23:39:02.520 2433-2523/? D/LockPatternUtils: isPcwEnable = null 03-23 23:39:02.520 2433-2523/? V/WindowManager: Window{43251dd8 u0 Keyguard}mOrientationRequetedFromKeyguard=true
At what the widget does not stop working at all, time passes, it is updated and works, and this story repeats) The same widget only on the desktop works fine.