diff options
author | Adam Lesinski <adamlesinski@google.com> | 2016-04-18 12:14:12 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2016-04-18 12:14:12 -0700 |
commit | ff22a56ef88214381cc9955f9a32d0e8d4db228f (patch) | |
tree | 5cea70591f69ec7673f7f40f2c385bfa73763eee /rs/java/android/renderscript/ScriptGroup.java | |
parent | 7e25024758c2aff4b70024c70d931f81ad25cbd6 (diff) |
Use Activity resources in DecorContext
We use the application context in DecorContext to avoid holding a reference
to the Activity. However, the resources don't match the Activity's in a multi-window
world, so we use the resources from the Activity, which get updated as the Activity
goes between multi-window states. This avoids holding a reference to the Activity.
Bug:28096052
Change-Id: I2804f2420afad6dcecc56e5dece008c390540d72
Diffstat (limited to 'rs/java/android/renderscript/ScriptGroup.java')
0 files changed, 0 insertions, 0 deletions