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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user