Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fb54263 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Enable suggestion v2 experiment"

parents 33ad251a f9e985d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ public class SuggestionFeatureProviderImpl implements SuggestionFeatureProvider
    }

    private static boolean isV2Enabled() {
        return FeatureFlagUtils.isEnabled(FEATURE_FLAG_SUGGESTIONS_V2);
        return FeatureFlagUtils.isEnabled(FEATURE_FLAG_SUGGESTIONS_V2) || true;
    }

    @Override
+0 −15
Original line number Diff line number Diff line
@@ -132,13 +132,6 @@ public class SuggestionFeatureProviderImplTest {
        assertThat(mProvider.isSuggestionEnabled(mContext)).isFalse();
    }

    @Test
    public void isSuggestionEnabled_isNotLowMemoryDevice_shouldReturnTrue() {
        when(mActivityManager.isLowRamDevice()).thenReturn(false);

        assertThat(mProvider.isSuggestionEnabled(mContext)).isTrue();
    }

    @Test
    public void isSuggestionV2Enabled_isNotLowMemoryDevice_sysPropOn_shouldReturnTrue() {
        when(mActivityManager.isLowRamDevice()).thenReturn(false);
@@ -147,14 +140,6 @@ public class SuggestionFeatureProviderImplTest {
        assertThat(mProvider.isSuggestionV2Enabled(mContext)).isTrue();
    }

    @Test
    public void isSuggestionV2Enabled_isNotLowMemoryDevice_sysPropOff_shouldReturnTrue() {
        when(mActivityManager.isLowRamDevice()).thenReturn(false);
        SettingsShadowSystemProperties.set(
                FeatureFlagUtils.FFLAG_PREFIX + mProvider.FEATURE_FLAG_SUGGESTIONS_V2, "false");
        assertThat(mProvider.isSuggestionV2Enabled(mContext)).isFalse();
    }

    @Test
    public void dismissSuggestion_noParserOrSuggestion_noop() {
        mProvider.dismissSuggestion(mContext, null, (Tile) null);