diff options
| author | 2015-12-15 10:27:04 -0500 | |
|---|---|---|
| committer | 2015-12-15 15:30:12 -0500 | |
| commit | 16bc2a7f379edd7796bb5aa4400e1b7c14376a08 (patch) | |
| tree | 90b12d6b230ea22c56aea775fea713c1606d6020 | |
| parent | d6b78a330bf6a74ff9bfa18d1ebe67a8665d4cfa (diff) | |
Fixing long compare.
Bug: 24117216
Change-Id: I32cbc333ff9a145e5b65e923af4dbd80ea035cb1
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/recents/model/TaskStack.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/model/TaskStack.java b/packages/SystemUI/src/com/android/systemui/recents/model/TaskStack.java index 13ab3920065e..5d07b10d6714 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/model/TaskStack.java +++ b/packages/SystemUI/src/com/android/systemui/recents/model/TaskStack.java @@ -572,7 +572,7 @@ public class TaskStack { Collections.sort(tasks, new Comparator<Task>() { @Override public int compare(Task task, Task task2) { - return (int) (task.key.firstActiveTime - task2.key.firstActiveTime); + return Long.compare(task.key.firstActiveTime, task2.key.firstActiveTime); } }); // Create groups when sequential packages are the same |