OSDN Git Service

Resume home activity can skip resume and cause ANR. DO NOT MERGE
authorlouis_chang <louis_chang@htc.com>
Wed, 21 Jan 2015 11:01:52 +0000 (19:01 +0800)
committerCraig Mautner <cmautner@google.com>
Wed, 21 Jan 2015 21:38:31 +0000 (21:38 +0000)
commitb4d43538d7cbcea5ddcfd32edb4ada2c211b2a04
tree68daf96cd4f41bcf2db97677332d4f0b66a4175e
parent088bf3a37a329962efb5e5a42c82f32a2dab77fe
Resume home activity can skip resume and cause ANR. DO NOT MERGE

Symptom:
In some scenario, there might have two home tasks
in the home stack. If the top home task was finishing
and expected to return to home stack, no activity
will resume.

Root Cause:
Unable to perform resumeHomeStackTask() because the
resumeTopActivityLocked() has been prevented to invoke
recursively.

Solution:
Just resume the next activity if already in home stack

Change-Id: I24ecbcac6cee4ddbd90cdd27c4f4915cffb9b354
services/core/java/com/android/server/am/ActivityStack.java