summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-03-22 20:11:38 +0800
committer Riddle Hsu <riddlehsu@google.com> 2023-03-24 13:47:57 +0800
commit4bc08e77a217d5fe92e22b12fad0582715f23942 (patch)
treef51723a0156d80feb40f62304d1b22aeb9c65fe4 /libs/androidfw/ObbFile.cpp
parent0674cd7e1063e0ad4e06f84b1c8d6af87d432da8 (diff)
Give fg apps a chance to handle stop before killing its process
With live-tile feature, the removeTask can be called on a task with resumed activity. And because apps usually save state in onPause/onSaveInstanceState/onStop, defer the kill a bit until the app reports it is done. The timeout is short (1s) because user may want to kill a app which is no response. If the wait time is too long, the next launch may still bring the no response app again. Bug: 184899234 Bug: 213583589 Test: atest RecentTasksTest#testRemovePackageByName Change-Id: Id69a8ba77da16a13f7a3413bb004fc2206f4b4e8
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions