AChep / AcDisplay

AcDisplay is a new way of handling notifications in Android.
acdisplay.org
GNU General Public License v2.0
751 stars 225 forks source link

Get locked / unlocked status from another app #88

Closed frmz closed 9 years ago

frmz commented 9 years ago

Hi! In my live wallpaper i am currently using "KeyguardManager.inKeyguardRestrictedInputMode()" to understand if lockscreen is currently displayed or not however my users are reporting that this is not detected correctly in ACDisplay while it works without issues in standard lockscreen, should i add something else to support ACDisplay too?

AChep commented 9 years ago

It should be fine on KitKat or lower, but won't work correctly on Lollipop or higher. At this moment, there's no way to fix it.

frmz commented 9 years ago

Wow, that's quick. Any way to provide a broadcast on lock/unlock? Shouldn't be too much of a security issue and its a cheap workaround. I see a lot of users moving away from ACDisplay just because of this.

P.S. just curious, what's the issue on Lollipop? is that a bug?

frmz commented 9 years ago

Any update?

AChep commented 9 years ago

@frmz no, cause I'm too busy to work on the app.

AChep commented 9 years ago

Here you go. Now AcDisplay broadcasts those intents: "com.achep.acdisplay.STATE_START", "com.achep.acdisplay.STATE_RESUME", "com.achep.acdisplay.STATE_PAUSE", "com.achep.acdisplay.STATE_STOP".

frmz commented 9 years ago

Great!