Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fff1adf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add information to Task model for desktop entry" into tm-qpr-dev am:...

Merge "Add information to Task model for desktop entry" into tm-qpr-dev am: 2689585c am: f4ca2ab1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20028048



Change-Id: I7861501d978ff53960486eb9fc5b3b3fac9fe4c3
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 90ed56a7 f4ca2ab1
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -27,6 +27,8 @@ import android.app.ActivityManager.TaskDescription;
import android.app.TaskInfo;
import android.content.ComponentName;
import android.content.Intent;
import android.graphics.Point;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Parcel;
import android.os.Parcelable;
@@ -233,17 +235,14 @@ public class Task {
    @ViewDebug.ExportedProperty(category="recents")
    public boolean isLocked;

    public Point positionInParent;

    public Rect appBounds;

    // Last snapshot data, only used for recent tasks
    public ActivityManager.RecentTaskInfo.PersistedTaskSnapshotData lastSnapshotData =
            new ActivityManager.RecentTaskInfo.PersistedTaskSnapshotData();

    /**
     * Indicates that this task for the desktop tile in recents.
     *
     * Used when desktop mode feature is enabled.
     */
    public boolean desktopTile;

    public Task() {
        // Do nothing
    }
@@ -274,7 +273,8 @@ public class Task {
        this(other.key, other.colorPrimary, other.colorBackground, other.isDockable,
                other.isLocked, other.taskDescription, other.topActivity);
        lastSnapshotData.set(other.lastSnapshotData);
        desktopTile = other.desktopTile;
        positionInParent = other.positionInParent;
        appBounds = other.appBounds;
    }

    /**