summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Hui Yu <huiyu@google.com> 2022-03-14 17:23:16 -0700
committer Hui Yu <huiyu@google.com> 2022-03-15 12:30:30 -0700
commit95b05dcf59fbbedad28b0351fdbe6a3c2943ac61 (patch)
tree00575b7ea2abe6174f9b362f4acc0d4a0ba14b5d /libs/androidfw/StringPool.cpp
parent40ca086c4003e70760284e5fb3ad6361d8dc3387 (diff)
Remove SERVICE_FOREGROUND_TIMEOUT_MSG when scheduling service restart.
When scheduling service restart, if the service is waiting to become a foreground service, remove the pending SERVICE_FOREGROUND_TIMEOUT_MSG msg, and set fgWaiting to false, so next time the service is brought up, scheduleServiceForegroundTransitionTimeoutLocked() can be called again and a new SERVICE_FOREGROUND_TIMEOUT_MSG is scheduled in SERVICE_START_FOREGROUND_TIMEOUT again. Bug: 218909914 Test: Manual test, crash a service as b/218909914, watch the service is scheudle to restart and a new SERVICE_FOREGROUND_TIMEOUT_MSG is scheduled in SERVICE_START_FOREGROUND_TIMEOUT. Change-Id: I6194c0ff09ad14a5d04e42729207fa5780d06742
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions