* commit '228cefa83dd7b95e5581f619bb597808af726f80': [ActivityManager] Reduce report ANR on wrong activity.
This commit is contained in:
2
services/core/java/com/android/server/am/ActivityRecord.java
Normal file → Executable file
2
services/core/java/com/android/server/am/ActivityRecord.java
Normal file → Executable file
@@ -947,8 +947,8 @@ final class ActivityRecord {
|
|||||||
// for another app to start, then we have paused dispatching
|
// for another app to start, then we have paused dispatching
|
||||||
// for this activity.
|
// for this activity.
|
||||||
ActivityRecord r = this;
|
ActivityRecord r = this;
|
||||||
final ActivityStack stack = task.stack;
|
|
||||||
if (r.waitingVisible) {
|
if (r.waitingVisible) {
|
||||||
|
final ActivityStack stack = mStackSupervisor.getFocusedStack();
|
||||||
// Hmmm, who might we be waiting for?
|
// Hmmm, who might we be waiting for?
|
||||||
r = stack.mResumedActivity;
|
r = stack.mResumedActivity;
|
||||||
if (r == null) {
|
if (r == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user