From e2285895da5c1adc3259948c1ea41d339d88a57c Mon Sep 17 00:00:00 2001 From: Patrick Scott Date: Thu, 18 Jun 2009 09:25:48 -0400 Subject: [PATCH] Merge the fullscreen change from master to donut for security. Rework the AlarmAlert dialog layout. Make the layout portrait only to make it more uniform and nicer looking. Update all the clock layouts to have the same size. The alert will have a larger clock than the AlarmClock screen. Remove the old hack to make the alert a dialog. Inflate the views with a root so the layout params will be fill_parent. Use the animate_circle resource in setBackgroundResource to clean up the code. Add a new AlarmAlertFullScreen activity which makes the alert fullscreen with the current wallpaper as the background. Query the keyguard manager during the alarm broadcast to decide which activity to launch. The regular alert activity shows above the current activity but the fullscreen activity will not show the previous activity for security reasons. Add the alarm_alert style that mimics the Theme.Dialog.Alert style but does not rely on a private resource. Add dialog.9.png for the same reason. Add a LinearLayout surrounding the alert layout to hold the background wallpaper. --- AndroidManifest.xml | 19 +++- res/drawable/dialog.9.png | Bin 0 -> 1332 bytes res/layout-land/alarm_alert.xml | 76 --------------- res/layout-land/alarm_clock.xml | 6 +- res/layout/alarm_alert.xml | 104 ++++++++++++--------- res/layout/alarm_clock.xml | 4 +- res/layout/clock_basic_bw.xml | 2 +- res/layout/clock_droid2.xml | 2 +- res/layout/clock_droids.xml | 2 +- res/layout/clock_googly.xml | 2 +- res/layout/digital_clock.xml | 9 +- res/values/styles.xml | 8 +- src/com/android/alarmclock/AlarmAlert.java | 57 +++++------ .../android/alarmclock/AlarmAlertFullScreen.java | 43 +++++++++ src/com/android/alarmclock/AlarmAlertWakeLock.java | 41 ++++++-- src/com/android/alarmclock/AlarmClock.java | 10 +- src/com/android/alarmclock/AlarmReceiver.java | 14 ++- src/com/android/alarmclock/DigitalClock.java | 11 +-- 18 files changed, 208 insertions(+), 202 deletions(-) create mode 100644 res/drawable/dialog.9.png delete mode 100644 res/layout-land/alarm_alert.xml create mode 100644 src/com/android/alarmclock/AlarmAlertFullScreen.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 0e1c94e..c6c0b6f 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -28,13 +28,24 @@ - + android:screenOrientation="portrait" + android:configChanges="orientation|keyboardHidden|keyboard|navigation"/> + + + diff --git a/res/drawable/dialog.9.png b/res/drawable/dialog.9.png new file mode 100644 index 0000000000000000000000000000000000000000..2305be4648c6f17a66aa26fe37740740b7a9d3b8 GIT binary patch literal 1332 zcmV-41m>LhKzKSw03;XZ_b(V_&*k57&=)tA;g3OUnvfcoT)kzgDU2a?1vECq#w!T>g7!E8WW&=Pz~ z;{P0&V*weW??dAMv2YX+2O|?22j(y(7NWqD7z@P#QQ2@o&@N#d9EPG`unh=<$GEJG zfE+MwLkLeDW)-Q92+chRM#CAqV++9=|I^0**V@h#cdKd_f0S~~8tl4aSzP`TxrG_~=I{M@G_I8lP@?d#++1=mYf1#l+ zFE78U*Xv&!m>z)YQEfT zF_lXIHf~8uZVcq)*L*Nl$CjLAG9-vGRLBviK#UGpAz#dIjkQfE;&jB9ElQ7 zPfx!_>P*%Ikq_guk5rx^mnmrx(I=G5cDsG857uh6%onPW591R{S0N|Za~Yzf*p_VyOE)RYyBzP9#Z#F7TmtXR74x4T!dmf$0L#aV$7$2^j(jLKN{SsKv#_^5Nm($J^W6uh!PqK2(W&ISmMv zh~KWRu6{Z@JNxnA;NXYH$HxZ-24`oqD?tHa4FN+%Kt%u@CL`3e9b)AaLP4j}Tu2a0 zktm=p0YeEI)a?L5^#H&d02rY1VsEgiwo^a}`XD1dIOc*n|^jJkQJPW&c9(o0T|{ q{A8G+R5Z_bEV7~b2d{JfCBOjg|M&@;nRzq-0000 - - - - - - - - - - - - - -