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
committerCraig Mautner <cmautner@google.com>2014-07-31 17:07:39 +0000
commit9bcc6e83d98dc5608d15f38c12d397be650c637c (patch)
tree9b6c15d48d26ade6fdaebb658c4633950abade65 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentbeea442e72ddf03efe79d216288ea320fc4c308b (diff)
[ActivityManager] Avoid mistaking visibility by finishing task.
Cherry-picked from aosp into lmp-dev. 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 Conflicts: services/java/com/android/server/am/ActivityStack.java
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions