summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ScriptC.java
diff options
context:
space:
mode:
authorriddle_hsu <riddle_hsu@htc.com>2015-04-07 11:30:09 +0800
committerriddle_hsu <riddle_hsu@htc.com>2015-04-07 11:30:09 +0800
commitddc74155c9896b8783c1ba58499b909cce27a577 (patch)
tree3f7cae010da433ff8a0cd1a8a2252aaba1c517f5 /rs/java/android/renderscript/ScriptC.java
parent7200f661c1e5ef1c59c5849610dc97492c7a3a16 (diff)
[ActivityManager] Improve task order of getRunningTasks.
Symptom: During switching task in same stack, the first result of getRunningTasks will be the behind stack's top task. e.g. App Task X is starting task Y, the first entry may be home. Root Cause: TaskRecord's lastActiveTime is updated when pausing or resuming. When X task launch a new task Y, Y is on the top of task history, before X complete pause, Y's lastActiveTime will be 0 because it is a new task. Then when comparing the front task with other stack, other stack will be regarded as the newer one. Solution: If the stack is focused stack, give the top task with the last time. Change-Id: I0adc07608e03d333e0120a0dbc52a0fbbbb12f34
Diffstat (limited to 'rs/java/android/renderscript/ScriptC.java')
0 files changed, 0 insertions, 0 deletions