Skip to content
Commit 372a4b3b authored by Bernardo Rufino's avatar Bernardo Rufino
Browse files

Call proc.setLastActivityLaunchTime() in realStartActivityLocked()

..after we set the time. This is because BAL's grace period stopped
working after that call was removed in ag/9536366 (since without the
method call ActivityRecord.lastLaunchTime would be 0).

I'm not familiar with this area, other than to say this fixes the bug
linked. I'm putting this up given we're blocking some legitimate
activity starts such as starts from the launcher. Please let me know if
this should be a different fix!

Bug: 152621860
Test: atest BackgroundActivityLaunchTest#testBackgroundActivityNotBlockedWithinGracePeriod
Change-Id: I1a329f6a044f5aa491474f5be538991ede0f8f53
parent edea65c7
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