Remove context from getSupportFeatureProvider
Bug: 286764889 Test: m Settings Change-Id: I5635c7a809fd24d59da377993c7d1435d0c839e3
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user