Remove context from applicationFeatureProvider
ApplicationFeatureProvider is created by using application context, no need pass context in when get. Bug: 286764889 Test: m Settings Change-Id: I7f8dfe5716b7b55e0ff984f7603875d7896e2313
This commit is contained in:
@@ -53,8 +53,8 @@ public class TimeSpentInAppPreferenceController extends LiveDataController {
|
||||
public TimeSpentInAppPreferenceController(Context context, String preferenceKey) {
|
||||
super(context, preferenceKey);
|
||||
mPackageManager = context.getPackageManager();
|
||||
mAppFeatureProvider = FeatureFactory.getFactory(context)
|
||||
.getApplicationFeatureProvider(context);
|
||||
mAppFeatureProvider = FeatureFactory.getFeatureFactory()
|
||||
.getApplicationFeatureProvider();
|
||||
}
|
||||
|
||||
public void setPackageName(String packageName) {
|
||||
|
Reference in New Issue
Block a user