summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2014-04-03 18:05:29 -0700
committerWinson Chung <winsonc@google.com>2014-04-04 10:18:24 -0700
commit2f2ca08baa072376b3dfd60506625496aa05903f (patch)
treeecf3731fcc6cf5753744b8f72424360f222f82d4 /packages/SystemUI/res
parent5e3e5d8945249cfeb8bd59de112be88954ba62bf (diff)
downloadframeworks_base-2f2ca08baa072376b3dfd60506625496aa05903f.zip
frameworks_base-2f2ca08baa072376b3dfd60506625496aa05903f.tar.gz
frameworks_base-2f2ca08baa072376b3dfd60506625496aa05903f.tar.bz2
Fixing crash when filtering tasks too quickly.
- Using a translation-based animation duration scheme - Fixing issue where filtering a task could slide it out of view Change-Id: Id434b4a98aa671d84d047dad18cbe26f543cdf25
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r--packages/SystemUI/res/values/config.xml5
-rw-r--r--packages/SystemUI/res/values/dimens.xml4
2 files changed, 9 insertions, 0 deletions
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml
index 77ab17b..77944c8 100644
--- a/packages/SystemUI/res/values/config.xml
+++ b/packages/SystemUI/res/values/config.xml
@@ -107,5 +107,10 @@
<!-- milliseconds before the heads up notification accepts touches. -->
<integer name="heads_up_sensitivity_delay">700</integer>
+
+ <!-- The min animation duration for animating views that are currently visible. -->
+ <integer name="recents_filter_animate_current_views_min_duration">175</integer>
+ <!-- The min animation duration for animating views that are newly visible. -->
+ <integer name="recents_filter_animate_new_views_min_duration">125</integer>
</resources>
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
index 1c6d5ad..2c8f9a1 100644
--- a/packages/SystemUI/res/values/dimens.xml
+++ b/packages/SystemUI/res/values/dimens.xml
@@ -236,6 +236,10 @@
<!-- The size of the activity icon in the recents task view. -->
<dimen name="recents_task_view_activity_icon_size">60dp</dimen>
+ <!-- Used to calculate the translation animation duration, the expected amount of movement
+ in dps over one second of time. -->
+ <dimen name="recents_animation_movement_in_dps_per_second">800dp</dimen>
+
<!-- Space below the notification stack -->
<dimen name="notification_stack_margin_bottom">0dp</dimen>