Copy AutofillOptions into derived Contexts
0cfcde8 fixes missing ContentCaptureOptions in the derived Context.
The same issue should also exist for AutofillOptions in the derived
Contexts. This change copy AutofillOptions into derived Contexts. The
existing AttachedContextActivityTest verifies the derived Contexts.
But this don't really reflact the issue, we will add a test later to
reflect the issue.
Bug: 194542019
Test: atest AttachedContextActivityTest
Change-Id: I45bc87a6de37700de61d4a906001d6a4bec339ca
This commit is contained in:
@@ -3124,6 +3124,7 @@ class ContextImpl extends Context {
|
||||
mIsConfigurationBasedContext = container.mIsConfigurationBasedContext;
|
||||
mContextType = container.mContextType;
|
||||
mContentCaptureOptions = container.mContentCaptureOptions;
|
||||
mAutofillOptions = container.mAutofillOptions;
|
||||
} else {
|
||||
mBasePackageName = packageInfo.mPackageName;
|
||||
ApplicationInfo ainfo = packageInfo.getApplicationInfo();
|
||||
|
||||
Reference in New Issue
Block a user