Merge "Doesn't scale PagedView snap speed during tests." into sc-v2-dev

This commit is contained in:
Andy Wickham
2021-07-26 19:42:38 +00:00
committed by Android (Google) Code Review

View File

@@ -1614,7 +1614,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
return false;
}
if (FeatureFlags.IS_STUDIO_BUILD) {
if (FeatureFlags.IS_STUDIO_BUILD && !Utilities.IS_RUNNING_IN_TEST_HARNESS) {
duration *= Settings.Global.getFloat(getContext().getContentResolver(),
Settings.Global.WINDOW_ANIMATION_SCALE, 1);
}