summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2015-04-16 18:36:31 -0700
committerDoris Liu <tianliu@google.com>2015-04-17 16:25:01 -0700
commit5ed54c743c04e2bc349e12c31adb67cbc3094651 (patch)
tree4583002203e42ec36612b3e7fcf202dffccb8dc0 /api
parente57818a20e1d21ce705577b670b93d54d2e3a5d3 (diff)
downloadframeworks_base-5ed54c743c04e2bc349e12c31adb67cbc3094651.zip
frameworks_base-5ed54c743c04e2bc349e12c31adb67cbc3094651.tar.gz
frameworks_base-5ed54c743c04e2bc349e12c31adb67cbc3094651.tar.bz2
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
Diffstat (limited to 'api')
-rw-r--r--api/current.txt2
-rw-r--r--api/system-current.txt2
2 files changed, 2 insertions, 2 deletions
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);