summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/SystemUIApplication.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/SystemUIApplication.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/SystemUIApplication.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/SystemUIApplication.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/SystemUIApplication.java b/packages/SystemUI/src/com/android/systemui/SystemUIApplication.java
index f97d4ff..c120690 100644
--- a/packages/SystemUI/src/com/android/systemui/SystemUIApplication.java
+++ b/packages/SystemUI/src/com/android/systemui/SystemUIApplication.java
@@ -19,9 +19,12 @@ package com.android.systemui;
import android.app.Application;
import com.android.systemui.recent.RecentTasksLoader;
+import com.android.systemui.recent.RecentsActivity;
public class SystemUIApplication extends Application {
private RecentTasksLoader mRecentTasksLoader;
+ private boolean mWaitingForWinAnimStart;
+ private RecentsActivity.WindowAnimationStartListener mWinAnimStartListener;
public RecentTasksLoader getRecentTasksLoader() {
if (mRecentTasksLoader == null) {
@@ -29,4 +32,28 @@ public class SystemUIApplication extends Application {
}
return mRecentTasksLoader;
}
+
+ public void setWaitingForWinAnimStart(boolean waiting) {
+ mWaitingForWinAnimStart = waiting;
+ }
+
+ public void setWindowAnimationStartListener(
+ RecentsActivity.WindowAnimationStartListener startListener) {
+ mWinAnimStartListener = startListener;
+ }
+
+ public RecentsActivity.WindowAnimationStartListener getWindowAnimationListener() {
+ return mWinAnimStartListener;
+ }
+
+ public void onWindowAnimationStart() {
+ if (mWinAnimStartListener != null) {
+ mWinAnimStartListener.onWindowAnimationStart();
+ }
+ mWaitingForWinAnimStart = false;
+ }
+
+ public boolean isWaitingForWindowAnimationStart() {
+ return mWaitingForWinAnimStart;
+ }
} \ No newline at end of file