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

Commit 21a5a2f1 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Add getter for mockability

* See ag/22347415

Bug: 275267738
Change-Id: I22f57037d531d78166fa7bcbc01ff341c46885ca
parent 9ed16e1b
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -133,6 +133,10 @@ public class Task {
            return this.baseIntent.getPackage();
        }

        public int getId() {
            return id;
        }

        @Override
        public boolean equals(Object o) {
            if (!(o instanceof TaskKey)) {
@@ -307,6 +311,10 @@ public class Task {
        lastSnapshotData.set(rawTask.lastSnapshotData);
    }

    public TaskKey getKey() {
        return key;
    }

    /**
     * Returns the visible width to height ratio. Returns 0f if snapshot data is not available.
     */