OSDN Git Service

Close the global actions menu when the screen goes off.
authorJoe Onorato <joeo@android.com>
Fri, 17 Jul 2009 17:09:27 +0000 (13:09 -0400)
committerJoe Onorato <joeo@android.com>
Fri, 17 Jul 2009 17:09:27 +0000 (13:09 -0400)
commit83cf383bf462ecb53b4233fc3ae7f1202938d80b
tree01d0542f199f9a4834e246a05250a562bf0e095e
parent5785bc2dad36c7ad34a548865ba77c04c46ed097
Close the global actions menu when the screen goes off.

Previously, the global actions menu was closed when the keyguard was shown, but
when the menu was shown from within the keyguard, it wasn't closed ever again
when the screen goes off.  That had the result that if your pocket managed to
bring up the dialog, the menu would likely never go away on its own, and
eventually do something awful like go into airplane mode.
phone/com/android/internal/policy/impl/GlobalActions.java
phone/com/android/internal/policy/impl/KeyguardViewMediator.java
phone/com/android/internal/policy/impl/PhoneWindowManager.java