am 3fb2b713: Merge "[ActivityManager] Reduce report ANR on wrong activity."
* commit '3fb2b7132b64c65163e7c6cd948e45f703e93687': [ActivityManager] Reduce report ANR on wrong activity.
This commit is contained in:
2
services/java/com/android/server/am/ActivityRecord.java
Normal file → Executable file
2
services/java/com/android/server/am/ActivityRecord.java
Normal file → Executable file
@@ -942,8 +942,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