Remove the redundant constructor of SuggestionFeatureProviderImpl
Fix: 175167313 Test: robotest Change-Id: I7ebbaf92398a8300971d592e2ee7a6e0d82c1d2f
This commit is contained in:
@@ -83,7 +83,7 @@ public class DoubleTapScreenPreferenceControllerTest {
|
||||
// No stored value in shared preferences if not visited yet.
|
||||
final Context context = RuntimeEnvironment.application;
|
||||
final SharedPreferences prefs =
|
||||
new SuggestionFeatureProviderImpl(context).getSharedPrefs(context);
|
||||
new SuggestionFeatureProviderImpl().getSharedPrefs(context);
|
||||
|
||||
assertThat(DoubleTapScreenPreferenceController
|
||||
.isSuggestionComplete(mAmbientDisplayConfiguration, prefs)).isFalse();
|
||||
@@ -94,7 +94,7 @@ public class DoubleTapScreenPreferenceControllerTest {
|
||||
when(mAmbientDisplayConfiguration.doubleTapSensorAvailable()).thenReturn(false);
|
||||
final Context context = RuntimeEnvironment.application;
|
||||
final SharedPreferences prefs =
|
||||
new SuggestionFeatureProviderImpl(context).getSharedPrefs(context);
|
||||
new SuggestionFeatureProviderImpl().getSharedPrefs(context);
|
||||
|
||||
prefs.edit().putBoolean(
|
||||
DoubleTapScreenSettings.PREF_KEY_SUGGESTION_COMPLETE, true).commit();
|
||||
|
||||
Reference in New Issue
Block a user