diff options
author | Winson Chung <winsonc@google.com> | 2014-05-29 14:25:42 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2014-05-29 14:44:27 -0700 |
commit | b01ed681fe97ff5e98471c120ff9581a78db13c5 (patch) | |
tree | dc404f64dbb155bddd54c5374cc661b4bf0d0e29 /packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java | |
parent | 24cf152483c03dc446875c8d6440348174317bc5 (diff) | |
download | frameworks_base-b01ed681fe97ff5e98471c120ff9581a78db13c5.zip frameworks_base-b01ed681fe97ff5e98471c120ff9581a78db13c5.tar.gz frameworks_base-b01ed681fe97ff5e98471c120ff9581a78db13c5.tar.bz2 |
Fixing issue with configuration states not being reset on configuration change.
- Also updating some interpolators
Change-Id: Ia29fc6f10705c7d286246162f894a25de7b4be40
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java b/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java index 03f7e36..6d08281 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java +++ b/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java @@ -46,7 +46,9 @@ public class RecentsConfiguration { public float animationPxMovementPerSecond; - public Interpolator defaultBezierInterpolator; + public Interpolator fastOutSlowInInterpolator; + public Interpolator fastOutLinearInInterpolator; + public Interpolator linearOutSlowInInterpolator; public int filteringCurrentViewsMinAnimDuration; public int filteringNewViewsMinAnimDuration; @@ -141,8 +143,12 @@ public class RecentsConfiguration { taskBarViewDarkTextColor = res.getColor(R.color.recents_task_bar_dark_text_color); - defaultBezierInterpolator = AnimationUtils.loadInterpolator(context, + fastOutSlowInInterpolator = AnimationUtils.loadInterpolator(context, com.android.internal.R.interpolator.fast_out_slow_in); + fastOutLinearInInterpolator = AnimationUtils.loadInterpolator(context, + com.android.internal.R.interpolator.fast_out_linear_in); + linearOutSlowInInterpolator = AnimationUtils.loadInterpolator(context, + com.android.internal.R.interpolator.linear_out_slow_in); // Check if the developer options are enabled ContentResolver cr = context.getContentResolver(); @@ -167,6 +173,13 @@ public class RecentsConfiguration { appWidgetId).apply(); } + /** Called when the configuration has changed, and we want to reset any configuration specific + * members. */ + public void updateOnConfigurationChange() { + launchedFromAltTab = false; + launchedWithThumbnailAnimation = false; + } + /** Returns whether the search bar app widget exists */ public boolean hasSearchBarAppWidget() { return searchBarAppWidgetId >= 0; |