Merge "Allowing AppWidgetService to start without FEATURE_APP_WIDGETS" into nyc-dev

This commit is contained in:
Dmitri Plotnikov
2016-03-29 21:46:27 +00:00
committed by Android (Google) Code Review
3 changed files with 7 additions and 1 deletions

View File

@@ -1025,7 +1025,8 @@ public final class SystemServer {
mSystemServiceManager.startService(BACKUP_MANAGER_SERVICE_CLASS);
}
if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS)) {
if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS)
|| context.getResources().getBoolean(R.bool.config_enableAppWidgetService)) {
mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);
}