OSDN Git Service

Keyguard: Don't apply input restriction if disabled by profile
authorGabriele M <moto.falcon.git@gmail.com>
Wed, 10 Jan 2018 10:57:51 +0000 (11:57 +0100)
committerGabriele M <moto.falcon.git@gmail.com>
Thu, 18 Jan 2018 19:29:04 +0000 (19:29 +0000)
commitf3b6cc71e5c008652cd0ff3ddd6c2aafcfdc4734
treea34d67655aa65a8e849154f4eba31f9fbeb9ff79
parent9678ef8e29beab4637d1f1e579331059ce1c1404
Keyguard: Don't apply input restriction if disabled by profile

setKeyguardEnabled() applies some input restrictions when disabling
the lockscreen. This causes issues when a system profile disables the
lockscreen via this method, e.g. the home button stops working until
a profile re-enables the lockscreen with setKeyguardEnabled(). If the
current profile is disabling keyguard, don't restrict the inputs.

BUGBASH-504

Change-Id: Iaaaabecaf19a18911d276a47f826dec3dec045c1
packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java