Skip to content
Commit fc7cedd0 authored by Bryce Lee's avatar Bryce Lee
Browse files

Do not call checkReadyForSleep recursively.

resumeTopActivityUncheckedLocked can be recusively called. There are
currently measures in place to guard against
resumeTopActivityInnerLocked from being called inside recursively.
However, calls to checkReadyForSleep in the same method are not
protected in the same way. This can lead to a stack overflow.

This changelist moves the call to inside the scope protected from
recusive invocations.

Change-Id: Id5a7e04a354032ad10cf285f8d6b26d666734e6e
Fixes: 66344012
Test: go/wm-smoke-auto
parent 5f6980af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment