Merge "Fix feature flag page animation"

This commit is contained in:
Raff Tsai
2019-10-23 17:52:52 +00:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 14 deletions

View File

@@ -28,7 +28,6 @@ import static org.mockito.Mockito.when;
import android.content.Context;
import android.os.Build;
import android.os.SystemProperties;
import androidx.preference.PreferenceCategory;
import androidx.preference.PreferenceScreen;
@@ -77,9 +76,8 @@ public class FeatureFlagPreferenceControllerTest {
@Test
public void onStart_shouldRefreshFeatureFlags() {
mController.onStart();
mController.displayPreference(mScreen);
verify(mCategory).removeAll();
verify(mCategory, atLeastOnce()).addPreference(any(FeatureFlagPreference.class));
}
}