Clean up FeatureFactory.getFeature()
Bug: 286764889 Test: m Settings Change-Id: I7e472e6b0ca6b7a735c1b92742ddf06c545176fc
This commit is contained in:
@@ -164,7 +164,7 @@ public class AccountPreferenceController extends AbstractPreferenceController
|
||||
if (mAuthorities != null) {
|
||||
mAuthoritiesCount = mAuthorities.length;
|
||||
}
|
||||
final FeatureFactory featureFactory = FeatureFactory.getFactory(mContext);
|
||||
final FeatureFactory featureFactory = FeatureFactory.getFeatureFactory();
|
||||
mMetricsFeatureProvider = featureFactory.getMetricsFeatureProvider();
|
||||
mHelper = helper;
|
||||
mType = type;
|
||||
|
||||
@@ -117,7 +117,7 @@ public class AvatarViewMixin implements LifecycleObserver {
|
||||
true /* finishSecondaryWithPrimary */,
|
||||
false /* clearTop */);
|
||||
|
||||
FeatureFactory.getFactory(mContext).getMetricsFeatureProvider()
|
||||
FeatureFactory.getFeatureFactory().getMetricsFeatureProvider()
|
||||
.logSettingsTileClick(KEY_AVATAR_ICON, SettingsEnums.SETTINGS_HOMEPAGE);
|
||||
|
||||
// Here may have two different UI while start the activity.
|
||||
@@ -144,8 +144,8 @@ public class AvatarViewMixin implements LifecycleObserver {
|
||||
|
||||
@VisibleForTesting
|
||||
boolean hasAccount() {
|
||||
final Account accounts[] = FeatureFactory.getFactory(
|
||||
mContext).getAccountFeatureProvider().getAccounts(mContext);
|
||||
final Account[] accounts = FeatureFactory.getFeatureFactory().getAccountFeatureProvider()
|
||||
.getAccounts(mContext);
|
||||
return (accounts != null) && (accounts.length > 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ public class RemoveAccountPreferenceController extends AbstractPreferenceControl
|
||||
public RemoveAccountPreferenceController(Context context, Fragment parent) {
|
||||
super(context);
|
||||
mParentFragment = parent;
|
||||
mMetricsFeatureProvider = FeatureFactory.getFactory(context).getMetricsFeatureProvider();
|
||||
mMetricsFeatureProvider = FeatureFactory.getFeatureFactory().getMetricsFeatureProvider();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user