summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2012-10-01 13:58:29 +0200
committerMichael Jurka <mikejurka@google.com>2012-10-02 21:18:26 +0200
commit9bdaada95c481b8164417696649a1ffb584552f1 (patch)
tree04318ab516d58475a585cc1e99eb0ec464300b1d /packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
parent30ed33b141dd1add916466c193b6735cd0bf8315 (diff)
downloadframeworks_base-9bdaada95c481b8164417696649a1ffb584552f1.zip
frameworks_base-9bdaada95c481b8164417696649a1ffb584552f1.tar.gz
frameworks_base-9bdaada95c481b8164417696649a1ffb584552f1.tar.bz2
Fix bug 7138446: Icon blips in during Recents animation
Add animation where icon and description of the primary activity fades and translates in Change-Id: Ie21b5302ac9e58ee6af219b7cde98d12a8e82697
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
index d7b1b35..e88f9cd 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
@@ -544,7 +544,7 @@ public abstract class BaseStatusBar extends SystemUI implements
- p.getFontMetricsInt().top;
float descriptionTextSize = res
.getDimensionPixelSize(R.dimen.status_bar_recents_app_description_text_size);
- p.setTextSize(labelTextSize);
+ p.setTextSize(descriptionTextSize);
float descriptionTextHeight = p.getFontMetricsInt().bottom
- p.getFontMetricsInt().top;
@@ -567,10 +567,17 @@ public abstract class BaseStatusBar extends SystemUI implements
+ recentsItemTopPadding + thumbBgPadding + statusBarHeight);
}
+ final SystemUIApplication app =
+ (SystemUIApplication) ((Service) mContext).getApplication();
+ app.setWaitingForWinAnimStart(true);
ActivityOptions opts = ActivityOptions.makeThumbnailScaleDownAnimation(
getStatusBarView(),
first, x, y,
- null);
+ new ActivityOptions.OnAnimationStartedListener() {
+ public void onAnimationStarted() {
+ app.onWindowAnimationStart();
+ }
+ });
mContext.startActivityAsUser(intent, opts.toBundle(), new UserHandle(
UserHandle.USER_CURRENT));
}