Merge "Fix SystemCaptionsManagerService to re-bind after a force stop" into rvc-qpr-dev

This commit is contained in:
Gustav Sennton
2020-09-17 07:49:16 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 2 deletions

View File

@@ -948,7 +948,7 @@ public abstract class AbstractMasterSystemService<M extends AbstractMasterSystem
if (debug) { if (debug) {
Slog.d(mTag, "Eagerly recreating service for user " + userId); Slog.d(mTag, "Eagerly recreating service for user " + userId);
} }
getServiceForUserLocked(userId); updateCachedServiceLocked(userId);
} }
} }
onServicePackageRestartedLocked(userId); onServicePackageRestartedLocked(userId);

View File

@@ -34,7 +34,8 @@ public final class SystemCaptionsManagerService extends
context, context,
com.android.internal.R.string.config_defaultSystemCaptionsManagerService), com.android.internal.R.string.config_defaultSystemCaptionsManagerService),
/*disallowProperty=*/ null, /*disallowProperty=*/ null,
/*packageUpdatePolicy=*/ PACKAGE_UPDATE_POLICY_REFRESH_EAGER); /*packageUpdatePolicy=*/ PACKAGE_UPDATE_POLICY_REFRESH_EAGER
| PACKAGE_RESTART_POLICY_REFRESH_EAGER);
} }
@Override @Override