Clean up FeatureFactory.getFeature()

Bug: 286764889
Test: m Settings
Change-Id: I7e472e6b0ca6b7a735c1b92742ddf06c545176fc
This commit is contained in:
Chaohui Wang
2023-08-04 15:42:43 +08:00
parent 0062308347
commit 8e2ae547d6
220 changed files with 282 additions and 306 deletions

View File

@@ -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);
}