Fixing issue where we were relaunching each activity from recents instead of bringing them to the front.
diff --git a/packages/SystemUI/src/com/android/systemui/recents/model/Task.java b/packages/SystemUI/src/com/android/systemui/recents/model/Task.java
index 7b335af..cda4ab2 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/model/Task.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/model/Task.java
@@ -64,18 +64,21 @@
public String title;
public Drawable icon;
public Bitmap thumbnail;
+ public boolean isActive;
TaskCallbacks mCb;
- public Task(int id, Intent intent, String activityTitle, Drawable icon) {
- this(id, intent, activityTitle, icon, null);
+ public Task(int id, boolean isActive, Intent intent, String activityTitle, Drawable icon) {
+ this(id, isActive, intent, activityTitle, icon, null);
}
- public Task(int id, Intent intent, String activityTitle, Drawable icon, Bitmap thumbnail) {
+ public Task(int id, boolean isActive, Intent intent, String activityTitle, Drawable icon,
+ Bitmap thumbnail) {
this.key = new TaskKey(id, intent);
this.title = activityTitle;
this.icon = icon;
this.thumbnail = thumbnail;
+ this.isActive = isActive;
}
/** Set the callbacks */