DO NOT MERGE
Use remote context to inflate layout for RemoteView Bug: 205749786 Test: atest CtsAppWidgetTestCases Test: atest CtsWidgetTestCases:RemoteViewsTest Change-Id: I6d5772f0642e8a56e17ccbe7fddae46d844897a0
This commit is contained in:
committed by
Pierre Barbier de Reuille
parent
db5da1ce28
commit
068903a93f
@@ -552,6 +552,11 @@ public class AppWidgetHostView extends FrameLayout {
|
||||
inflateAsync(rvToApply);
|
||||
return;
|
||||
}
|
||||
|
||||
// Prepare a local reference to the remote Context so we're ready to
|
||||
// inflate any requested LayoutParams
|
||||
mRemoteContext = getRemoteContext();
|
||||
|
||||
int layoutId = rvToApply.getLayoutId();
|
||||
if (rvToApply.canRecycleView(mView)) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user