Fix inline not worked after the service package updated
AutofillService package updated cause autofill framework removed its service from the cached. When next time want to use the service, autofill framework will try to update the service information, but the service will be set as disabled due to can not get the service information from package manager. Adds the service package policy flag: PACKAGE_UPDATE_POLICY_REFRESH_EAGER to early make the cached to avoid this issue. Bug: 158034069 Test: manual Test: atest CtsAutoFillServiceTestCases Change-Id: Ib67617fac8dcaa92b76768bd61aa19211eac523d
This commit is contained in:
@@ -192,7 +192,7 @@ public final class AutofillManagerService
|
||||
public AutofillManagerService(Context context) {
|
||||
super(context,
|
||||
new SecureSettingsServiceNameResolver(context, Settings.Secure.AUTOFILL_SERVICE),
|
||||
UserManager.DISALLOW_AUTOFILL);
|
||||
UserManager.DISALLOW_AUTOFILL, PACKAGE_UPDATE_POLICY_REFRESH_EAGER);
|
||||
mUi = new AutoFillUI(ActivityThread.currentActivityThread().getSystemUiContext());
|
||||
mAm = LocalServices.getService(ActivityManagerInternal.class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user