From 00c9c9a6fc551fef89658a11abe544248247f3b6 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Mon, 26 Mar 2018 15:33:41 -0700 Subject: Adding an empty message in RecentsView Moving the content instead of translating the view. This ensures that the empty message fades in place while the other content come-in from the side. Change-Id: I081d2e21206de24ad530814cb6a8ca7c3e293724 --- .../com/android/launcher3/uioverrides/RecentsViewStateController.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java') diff --git a/quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java b/quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java index d8f206c5e..5f94bcaf1 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java +++ b/quickstep/src/com/android/launcher3/uioverrides/RecentsViewStateController.java @@ -56,6 +56,7 @@ public class RecentsViewStateController implements StateHandler { mRecentsView.setTranslationXFactor(translationFactor[0]); mRecentsView.setTranslationYFactor(translationFactor[1]); if (state.overviewUi) { + mRecentsView.updateEmptyMessage(); mRecentsView.resetTaskVisuals(); } } @@ -94,6 +95,7 @@ public class RecentsViewStateController implements StateHandler { }); updateAnim.setDuration(config.duration); builder.play(updateAnim); + mRecentsView.updateEmptyMessage(); } } } -- cgit v1.2.3