From: Patrick Scott Date: Thu, 18 Jun 2009 13:25:48 +0000 (-0400) Subject: Merge the fullscreen change from master to donut for security. X-Git-Tag: android-x86-2.2~163^2~4 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e2285895da5c1adc3259948c1ea41d339d88a57c;p=android-x86%2Fpackages-apps-DeskClock.git 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. --- 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 0000000..2305be4 Binary files /dev/null and b/res/drawable/dialog.9.png differ diff --git a/res/layout-land/alarm_alert.xml b/res/layout-land/alarm_alert.xml deleted file mode 100644 index a58bc56..0000000 --- a/res/layout-land/alarm_alert.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - -