summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2018-05-24 13:41:50 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-05-24 20:46:46 +0000
commit2c744d0dbc35d4c21a386be7aedb6311cfb333e3 (patch)
tree2c0fe307f984ec0d2fac5668d6eb90cecbf8f91a /libs/hwui/ProgramCache.cpp
parent89f6804017fae38971eb8810be06edf18c82c0ca (diff)
Use TCM context if application context is unavailble.
In TextClassificationManager, we use the application context to reduce the likelihood of leaking the underlying Activity. Unfortunately, some places (e.g. auto, system_server) don't actually provide us an application context, so we need to fall back to whatever context was passed in to TCM in the first place. Bug: 80188317 Test: none Change-Id: Ib4b2e6ed543d3ed56cefd8f56717855158cdc0fe (cherry picked from commit b112f26ccef2ddcca67f14fd53b9ad297e452a4a)
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions