From 59aed3885e7bf34b4d7c021db4243484fa267526 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Tue, 2 Aug 2011 17:31:44 -0700 Subject: [PATCH] Put back the status bar animations. Change-Id: I9b326e8da9fa17878dde8a83c6551e9eb600bb7e --- core/res/res/values/styles.xml | 13 ------------- .../SystemUI}/res/anim/priority_alert_enter.xml | 0 .../SystemUI}/res/anim/priority_alert_exit.xml | 0 .../SystemUI}/res/anim/status_bar_enter.xml | 3 ++- .../SystemUI}/res/anim/status_bar_exit.xml | 3 ++- packages/SystemUI/res/values/styles.xml | 11 +++++++++++ .../com/android/systemui/statusbar/StatusBar.java | 3 ++- .../systemui/statusbar/phone/PhoneStatusBar.java | 3 ++- 8 files changed, 19 insertions(+), 17 deletions(-) rename {core/res => packages/SystemUI}/res/anim/priority_alert_enter.xml (100%) rename {core/res => packages/SystemUI}/res/anim/priority_alert_exit.xml (100%) rename {core/res => packages/SystemUI}/res/anim/status_bar_enter.xml (88%) rename {core/res => packages/SystemUI}/res/anim/status_bar_exit.xml (88%) diff --git a/core/res/res/values/styles.xml b/core/res/res/values/styles.xml index 5aa47b71f5f46..ed2d3b0653740 100644 --- a/core/res/res/values/styles.xml +++ b/core/res/res/values/styles.xml @@ -95,19 +95,6 @@ @anim/dialog_exit - - - - - - - + - + @*android:anim/shrink_fade_out_from_bottom + + + + + diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBar.java index 918d5a3ec3800..61da1f56a56a5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBar.java @@ -119,7 +119,8 @@ public abstract class StatusBar extends SystemUI implements CommandQueue.Callbac PixelFormat.RGBX_8888); lp.gravity = getStatusBarGravity(); lp.setTitle("StatusBar"); - // TODO lp.windowAnimations = R.style.Animation_StatusBar; + lp.packageName = mContext.getPackageName(); + lp.windowAnimations = R.style.Animation_StatusBar; WindowManagerImpl.getDefault().addView(sb, lp); if (SPEW) { diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index d25a8275fed71..7bb8277ffb485 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -505,7 +505,8 @@ public class PhoneStatusBar extends StatusBar { lp.gravity = Gravity.TOP | Gravity.FILL_HORIZONTAL; lp.y += height * 1.5; // FIXME lp.setTitle("IntruderAlert"); - lp.windowAnimations = com.android.internal.R.style.Animation_StatusBar_IntruderAlert; + lp.packageName = mContext.getPackageName(); + lp.windowAnimations = R.style.Animation_StatusBar_IntruderAlert; WindowManagerImpl.getDefault().addView(mIntruderAlertView, lp); }