summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorGustav Sennton <gsennton@google.com>2019-09-13 12:00:50 +0100
committerGustav Sennton <gsennton@google.com>2019-09-18 08:07:52 +0000
commitdfa968d4025330986d5161484f705deb67a4613a (patch)
tree822e9fae5afe865f0372bf52cdcd8a938286db13 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent8c0b496c9716eb34cc09dbdd3b7e66e9e0181e10 (diff)
SSIN: Use the application's context to load icon resources.
SSIN = Smart Suggestions in Notifications. When posting a notification with contextual/smart actions app developers supply their own icons for their actions. These icons can reference resources from within the application package. Therefore we need to use a Context from that package to load icon resources. Before this CL we were using the SystemUi context which doesn't have access to the same resources as the app context - meaning we were not able to load the icon the app developer was providing us (unless they provided an Icon instance rather than just a resource ID for their icon). Bug: 137044913 Test: atest SmartReplyViewTest Test: manual - create a notification with a contextual action whose icon is referenced through a resource ID (not an Icon instance). Ensure the icon is shown correctly in the notification. Change-Id: Ia6d7b3689c46b65558437e00a947ba3cd330e4ca
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions