Merge "Remove the redundant constructor of SuggestionFeatureProviderImpl"

This commit is contained in:
Chaohui Wang
2022-08-08 06:47:18 +00:00
committed by Android (Google) Code Review
21 changed files with 36 additions and 59 deletions

View File

@@ -179,8 +179,8 @@ public class ZenOnboardingActivity extends Activity {
}
private static boolean withinShowTimeThreshold(Context context) {
final SuggestionFeatureProvider featureProvider = FeatureFactory.getFactory(context)
.getSuggestionFeatureProvider(context);
final SuggestionFeatureProvider featureProvider =
FeatureFactory.getFactory(context).getSuggestionFeatureProvider();
final SharedPreferences prefs = featureProvider.getSharedPrefs(context);
final long currentTimeMs = System.currentTimeMillis();
final long firstDisplayTimeMs;