mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Doesn't scale PagedView snap speed during tests.
Settings.Global.getFloat causes a Binder transaction which breaks BinderTests.java when running it from Android Studio. Test: BinderTests.java Bug: 187428578 Change-Id: I07ce2fe256dba0bfa98a5dade538d68e7ce357ff
This commit is contained in:
@@ -1609,7 +1609,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user