From 5ed54c743c04e2bc349e12c31adb67cbc3094651 Mon Sep 17 00:00:00 2001 From: Doris Liu Date: Thu, 16 Apr 2015 18:36:31 -0700 Subject: Use real screen size to scale duration Duration scale based on screen size was using the area of the screen excluding system bars to compare with our reference device's screen size. This caused the following issues: 1) On baseline device (i.e N5) a scaling factor that is not 1 will be applied to the duration. 2) Scaling on the same device will be different in landscape vs. portrait, as the system bars take different amounts of space in different orienations. This CL fixes both of the above issues. Bug: 20309042 Change-Id: I9d1d0a471d968bee1330b80f0f69a0066d6a1860 --- api/current.txt | 2 +- api/system-current.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'api') diff --git a/api/current.txt b/api/current.txt index 4a3b3dc..c5d4cdd 100644 --- a/api/current.txt +++ b/api/current.txt @@ -2879,7 +2879,7 @@ package android.animation { method public void removePauseListener(android.animation.Animator.AnimatorPauseListener); method public void resume(); method public abstract android.animation.Animator setDuration(long); - method public void setDurationScaleHint(int, android.content.res.Resources); + method public void setDurationScaleHint(android.content.Context, int); method public abstract void setInterpolator(android.animation.TimeInterpolator); method public abstract void setStartDelay(long); method public void setTarget(java.lang.Object); diff --git a/api/system-current.txt b/api/system-current.txt index 4b283fe..7dcc8ac 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -2959,7 +2959,7 @@ package android.animation { method public void removePauseListener(android.animation.Animator.AnimatorPauseListener); method public void resume(); method public abstract android.animation.Animator setDuration(long); - method public void setDurationScaleHint(int, android.content.res.Resources); + method public void setDurationScaleHint(android.content.Context, int); method public abstract void setInterpolator(android.animation.TimeInterpolator); method public abstract void setStartDelay(long); method public void setTarget(java.lang.Object); -- cgit v1.1