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

Commit a05bdc68 authored by Vinit Nayak's avatar Vinit Nayak Committed by Automerger Merge Worker
Browse files

Merge "Add getter for mockability" into tm-qpr-dev am: 5b7b1533 am: c1c96202 am: 09e43076

parents 1cd9dc53 09e43076
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.
     */