Reading window_animation_scale from Settings.Global

It moved from Settings.System, so there were constant warnings in the
logs. This only affects dogfood builds.

Change-Id: Ic3c179837f78a8040579fcc6ad485f6fabe1c2a1
This commit is contained in:
Tony Wickham
2018-08-27 17:36:03 -07:00
parent a537578498
commit cb3f870054

View File

@@ -1404,8 +1404,8 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
}
if (FeatureFlags.IS_DOGFOOD_BUILD) {
duration *= Settings.System.getFloat(getContext().getContentResolver(),
Settings.System.WINDOW_ANIMATION_SCALE, 1);
duration *= Settings.Global.getFloat(getContext().getContentResolver(),
Settings.Global.WINDOW_ANIMATION_SCALE, 1);
}
whichPage = validateNewPage(whichPage);