Remove context from getSupportFeatureProvider

Bug: 286764889
Test: m Settings
Change-Id: I5635c7a809fd24d59da377993c7d1435d0c839e3
This commit is contained in:
Chaohui Wang
2023-07-04 13:21:33 +08:00
parent 778c2dc3d5
commit da796d80f1
7 changed files with 9 additions and 13 deletions

View File

@@ -42,8 +42,8 @@ public class SupportDashboardActivity extends Activity implements Indexable {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
SupportFeatureProvider supportFeatureProvider = FeatureFactory.getFactory(this)
.getSupportFeatureProvider(this);
SupportFeatureProvider supportFeatureProvider = FeatureFactory.getFeatureFactory()
.getSupportFeatureProvider();
// try to launch support if we have the feature provider
if (supportFeatureProvider != null) {

View File

@@ -34,8 +34,7 @@ public class SupportPreferenceController extends BasePreferenceController {
public SupportPreferenceController(Context context, String preferenceKey) {
super(context, preferenceKey);
mSupportFeatureProvider = FeatureFactory.getFactory(context)
.getSupportFeatureProvider(context);
mSupportFeatureProvider = FeatureFactory.getFeatureFactory().getSupportFeatureProvider();
}
public void setActivity(Activity activity) {