summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2014-08-26 12:25:34 -0700
committerWinson Chung <winsonc@google.com>2014-08-27 19:07:36 +0000
commitebfc6981828b0699eef85c58b23a61f2cac41af3 (patch)
tree6db84ea62c9ee802b3e30601530bf685f140f1ac /packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java
parent2227cac5af26c9ed103d7d8e1c010c3723c1b5b2 (diff)
downloadframeworks_base-ebfc6981828b0699eef85c58b23a61f2cac41af3.zip
frameworks_base-ebfc6981828b0699eef85c58b23a61f2cac41af3.tar.gz
frameworks_base-ebfc6981828b0699eef85c58b23a61f2cac41af3.tar.bz2
Additional changes to improve performance when loading Recents. (Bug 16987565)
- Ensuring that we consistently load activity icon, title and color for both full and shallow stacks - Adding activity info caches when loading the stacks - Should not be scaling pin icon when launching from pin - Tweaking snap-back, over scroll, and shadows Change-Id: I556b93562bb2c69e4c25ce787a7a34532ab706ca
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java b/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java
index 9803687..5d8181c 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java
@@ -67,9 +67,11 @@ public class RecentsConfiguration {
public int searchBarSpaceHeightPx;
/** Task stack */
+ public int taskStackScrollDuration;
public int taskStackMaxDim;
public int taskStackTopPaddingPx;
public float taskStackWidthPaddingPct;
+ public float taskStackOverscrollPct;
/** Task view animation and styles */
public int taskViewEnterFromHomeDuration;
@@ -195,9 +197,14 @@ public class RecentsConfiguration {
searchBarAppWidgetId = settings.getInt(Constants.Values.App.Key_SearchAppWidgetId, -1);
// Task stack
+ taskStackScrollDuration =
+ res.getInteger(R.integer.recents_animate_task_stack_scroll_duration);
TypedValue widthPaddingPctValue = new TypedValue();
res.getValue(R.dimen.recents_stack_width_padding_percentage, widthPaddingPctValue, true);
taskStackWidthPaddingPct = widthPaddingPctValue.getFloat();
+ TypedValue stackOverscrollPctValue = new TypedValue();
+ res.getValue(R.dimen.recents_stack_overscroll_percentage, stackOverscrollPctValue, true);
+ taskStackOverscrollPct = stackOverscrollPctValue.getFloat();
taskStackMaxDim = res.getInteger(R.integer.recents_max_task_stack_view_dim);
taskStackTopPaddingPx = res.getDimensionPixelSize(R.dimen.recents_stack_top_padding);