Limit starting bounds of swipe to animation start rect
* If the starting point is greater than that of the current device's width (in either positive or negative direction), reset the starting rect to be fullscreen task bounds * More details at b/228829958#comment12 Fixes: 228829958 Test: Reboot device and swipe up from home immediately, app doesn't fling from the side. Tested with portrait and landscape launcher. Tested with fake landscape launcher. Change-Id: I6ea24e30e9de5716b7830f487b2ed63f56598c50
This commit is contained in:
1 parent
f7a48aae65
commit
f7b4e7f497
4 files changed
+33
No files matched your search
@@ -226,6 +226,12 @@ public interface PagedOrientationHandler {
|
||||
*/
|
||||
void adjustFloatingIconStartVelocity(PointF velocity);
|
||||
|
||||
/**
|
||||
* Ensures that outStartRect left bound is within the DeviceProfile's visual boundaries
|
||||
* @param outStartRect The start rect that will directly be modified
|
||||
*/
|
||||
void fixBoundsForHomeAnimStartRect(RectF outStartRect, DeviceProfile deviceProfile);
|
||||
|
||||
class ChildBounds {
|
||||
|
||||
public final int primaryDimension;
|
||||
|
||||
Reference in new issue
Block a user