OSDN Git Service

Switch from dialog to fullscreen when the keyguard is showing.
authorPatrick Scott <phanna@android.com>
Mon, 5 Oct 2009 13:00:14 +0000 (09:00 -0400)
committerPatrick Scott <phanna@android.com>
Mon, 5 Oct 2009 15:09:40 +0000 (11:09 -0400)
commitaa67778949c2506c7e66f37b1baeef4fc2f1ab27
tree6cf09a1eeeab3d6163ee5860b1999cfab4afb5a0
parentf150fa8ad061efee81604f422eaaaf1579494a6d
Switch from dialog to fullscreen when the keyguard is showing.

Make AlarmAlert derive from AlarmAlertFullScreen. This looks like a massive
change but it is mostly a rename. Use a broadcast receiver to listen for the
screen turning off. Attempt to read the keyguard status up to 5 times in order
to launch the fullscreen activity. Add "screen_off" to the intent extras to
indicate that the intent is from the screen_off broadcast and to not wake the
screen.

The overall goal of this is that if the alarm fires while the device is on and
the user turns the screen off and then on, the full screen alert will show so
that the user can dismiss the alert.
src/com/android/alarmclock/AlarmAlert.java
src/com/android/alarmclock/AlarmAlertFullScreen.java