Remove context from dashboardFeatureProvider

DashboardFeatureProviderImpl is created by using application context,
no need pass context in when get.

Bug: 286764889
Test: m Settings
Change-Id: Ia9672dfd9d3d71f64735cbc5979a6ad57c9429d3
This commit is contained in:
Chaohui Wang
2023-07-20 12:21:16 +08:00
parent 1ac510e4b1
commit 58f0ee30fc
8 changed files with 20 additions and 21 deletions

View File

@@ -238,7 +238,7 @@ public class SettingsActivity extends SettingsBaseActivity
String tag = getMetricsTag();
return new SharedPreferencesLogger(this, tag,
FeatureFactory.getFactory(this).getMetricsFeatureProvider(),
FeatureFactory.getFeatureFactory().getMetricsFeatureProvider(),
lookupMetricsCategory());
}
@@ -292,8 +292,8 @@ public class SettingsActivity extends SettingsBaseActivity
protected void createUiFromIntent(Bundle savedState, Intent intent) {
long startTime = System.currentTimeMillis();
final FeatureFactory factory = FeatureFactory.getFactory(this);
mDashboardFeatureProvider = factory.getDashboardFeatureProvider(this);
final FeatureFactory factory = FeatureFactory.getFeatureFactory();
mDashboardFeatureProvider = factory.getDashboardFeatureProvider();
if (intent.hasExtra(EXTRA_UI_OPTIONS)) {
getWindow().setUiOptions(intent.getIntExtra(EXTRA_UI_OPTIONS, 0));