Reset recents translation when launching

So we don't end up with empty content after having cancelled
the drag in gesture.

Change-Id: If00c526806816df58c751cd715e0575dbb7adf17
This commit is contained in:
Jorim Jaggi
2015-12-07 17:15:16 -08:00
parent 62211c9b7f
commit 0ca8826069

View File

@@ -411,6 +411,8 @@ public class RecentsView extends FrameLayout implements TaskStackView.TaskStackV
RecentsActivityLaunchState launchState = Recents.getConfiguration().getLaunchState();
if (launchState.launchedViaDragGesture) {
setTranslationY(getMeasuredHeight());
} else {
setTranslationY(0f);
}
}
}