summaryrefslogtreecommitdiff
path: root/libs/ui/FramebufferNativeWindow.cpp
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2009-08-06 21:24:25 -0700
committer Jeff Sharkey <jsharkey@android.com> 2009-08-06 21:53:56 -0700
commitb8560b66fd2bdf465a8c7fad983f2236778e8106 (patch)
tree496f26bad3dd80cb0f83d0143f6b37a344af5e32 /libs/ui/FramebufferNativeWindow.cpp
parent3397f16949d2e86442c32f3b82d5ee3ace99ba82 (diff)
Fix AppWidget layout inflation to resolve references.
When RemoteViews inflates a layout and set of actions, it uses a cloned remote Context so it can fully access the resources needed to complete the inflate. However, in one specific case when inflating the root view, LayoutInflater calls back to the soon-to-be parent view to request the correct set of LayoutParams through generateLayoutParams(). The default implementation of generateLayoutParams() uses the Context of the /local/ View instead of the remote Context being used for the inflation, which means that any LayoutParam references in the root view are unresolved. To fix this, we internally create our own copy of the target remote Context. This way, when the remote LayoutInflater calls generateLayoutParams(), we inflate it using the remote Context to correctly resolve any references. This change is required as part of http://b/2038594
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
0 files changed, 0 insertions, 0 deletions