[Xposed Framework Modules] manos78:
Hi [MENTION=6374995]SergioSanchezR[/MENTION],

I'm using the last version with Nougat. And it works great!

However, with Xposed 88.1 & 88.2 Systemless (as Magisk madule), I see an error in the log all the time:

11-08 11:46:46.104 I/Xposed ( 2043): LockScreenWidgets ==========>>> Module loaded! Debug mode: false
11-08 11:46:47.187 I/Xposed ( 2238): Hook N constructor success
11-08 11:46:47.421 I/Xposed ( 2043): <<<========== LockScreenWidgets restoreSavedWidgets. Precondition failed...
11-08 11:46:47.429 E/Xposed ( 2043): java.lang.IllegalStateException: User 0 must be unlocked for widgets to be available
11-08 11:46:47.429 E/Xposed ( 2043):	at android.os.Parcel.readException(Parcel.java:1691)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.os.Parcel.readException(Parcel.java:1636)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.internal.appwidget.IAppWidgetService$Stub$Proxy.stopListening(IAppWidgetService.java:503)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.appwidget.AppWidgetHost.stopListening(AppWidgetHost.java:212)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.ssrdroide.lockscreenwidgets.XposedLockScreenWidgets$5.afterHookedMethod(XposedLockScreenWidgets.java:425)
11-08 11:46:47.429 E/Xposed ( 2043):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:374)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.keyguard.KeyguardStatusView.setEnableMarquee(<Xposed>)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.keyguard.KeyguardStatusView.onFinishInflate(KeyguardStatusView.java:137)
11-08 11:46:47.429 E/Xposed ( 2043):	at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
11-08 11:46:47.429 E/Xposed ( 2043):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:360)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.keyguard.KeyguardStatusView.onFinishInflate(<Xposed>)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:867)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.parseInclude(LayoutInflater.java:994)
11-08 11:46:47.429 E/Xposed ( 2043):	at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
11-08 11:46:47.429 E/Xposed ( 2043):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:360)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.parseInclude(<Xposed>)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:854)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.parseInclude(LayoutInflater.java:994)
11-08 11:46:47.429 E/Xposed ( 2043):	at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
11-08 11:46:47.429 E/Xposed ( 2043):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:360)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.parseInclude(<Xposed>)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:854)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
11-08 11:46:47.429 E/Xposed ( 2043):	at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
11-08 11:46:47.429 E/Xposed ( 2043):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:360)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.inflate(<Xposed>)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.view.View.inflate(View.java:20869)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.systemui.statusbar.phone.PhoneStatusBar.inflateStatusBarWindow(PhoneStatusBar.java:1157)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:790)
11-08 11:46:47.429 E/Xposed ( 2043):	at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
11-08 11:46:47.429 E/Xposed ( 2043):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:360)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(<Xposed>)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3511)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3507)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:786)
11-08 11:46:47.429 E/Xposed ( 2043):	at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
11-08 11:46:47.429 E/Xposed ( 2043):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:360)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.systemui.statusbar.BaseStatusBar.start(<Xposed>)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:714)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java:106)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:58)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:230)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.systemui.statusbar.ServiceMonitor.-wrap5(ServiceMonitor.java)
11-08 11:46:47.429 E/Xposed ( 2043):	at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.os.Handler.dispatchMessage(Handler.java:102)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.os.Looper.loop(Looper.java:154)
11-08 11:46:47.429 E/Xposed ( 2043):	at android.app.ActivityThread.main(ActivityThread.java:6123)
11-08 11:46:47.429 E/Xposed ( 2043):	a

The module works, and I don't see any error except this one when booting. I feel it very annoying.

Please, can you try to catch this error?

Thank you for this fantastic module! :good: