summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Sumedh Sen <sumedhsen@google.com> 2023-07-18 15:00:59 -0700
committer Sumedh Sen <sumedhsen@google.com> 2023-09-13 22:47:50 +0000
commit0b95ed68e7742708922903f7a94bc52b011c6337 (patch)
tree328415920b49751b7362d809ff93a28697bcd2fd /libs/androidfw/StringPool.cpp
parent0d4d8cdaeb5c21d6c67d6a9702fbbe43c056b6a2 (diff)
Make AppSnippet parcelable
AppSnippet is used in Pia in 4 activities. Each time, it is expensive to parse the app's logo and label from PackageManager and the APK file of the app being installed. Thus, lets compute the AppSnippet once and pass it as an intent extra to whichever activity needs it. This also solves the bug where InstallSuccess showed an activity's name in place of the app label since the temporary directory used to create AppSnippet is already destroyed after app installation. Bug: 294710269 Bug: 290862169 Test: Manually install an APK and observe the app install / update dialog Change-Id: I2095b092e1a7b3186ff4cdc4c81effce51377b19 Merged-In: I2095b092e1a7b3186ff4cdc4c81effce51377b19 (cherry picked from commit 719d00a979005e1b5919694305b015e1970992d9)
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions