summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorriddle_hsu <riddle_hsu@htc.com>2014-07-31 00:26:51 +0800
committerriddle_hsu <riddle_hsu@htc.com>2014-07-31 00:26:51 +0800
commit1df4d9f8c772bb77a13205b81091771ea8ba4fbc (patch)
tree867f135375cb067acc4530d354da1374eab2b6cb /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent8224edb94f6421a2d910362c56940dcf991847e6 (diff)
[ActivityManager] Avoid mistaking visibility by finishing task.
Sympton: Next activity only adds to history but does not launch/resume then results ANR. Root Cause: In a rare timing, some windows are switched at the same time, it will cause some finishing records on the top temporarily, then set startIt to false that skip to resume the real top activty. Solution: If all activities in a task are finishing, do not use it to check. The behavior/checking is the same concept as in JellyBean: // If starting in an existing task, find where that is... boolean startIt = true; for (int i = NH-1; i >= 0; i--) { ActivityRecord p = mHistory.get(i); if (p.finishing) { // <-- continue; } Change-Id: I9d81a7b5182400c52e173da23eee61c74692beee
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions