summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Galia Peycheva <galinap@google.com> 2022-12-19 12:06:48 +0100
committer Lucas Silva <lusilva@google.com> 2023-02-21 15:07:38 +0000
commitf8ebb8da43b7c04a69ec0f7e15f3f99ff9721531 (patch)
tree7a2421412bee841ae7c78ef16e321fe99e3883e3 /libs/androidfw/ApkParsing.cpp
parent16ac8f216ed11b3dd73d5388e82256fe612ff7fd (diff)
Make DreamActivity no history
The DreamActivity is tied to a DreamService. When the DreamActivity is destroyed, so is the DreamService. If the DreamActivity is consequently recreated by the WM, this leads to a ClassCastException in the DreamActivity.onCreate method. This CL makes the DreamActivity a noHistory activity, which prevents it from being recreated after having been destroyed once. We also handle the case where the callback in onCreate is null or of the wrong type and finish the dream immediately if so. Bug: 231602954 Test: atest DreamManagerServiceTests Change-Id: I93637368374d9de90c588e2b0355ae7b66fb4167 (cherry picked from commit becfbaf25f5aab659e92e08cc3e0fe6b903044d4)
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions