[automerger] Track shelf rather than app window am: 7f300e3dff
Change-Id: I46442796f81ecb185bf74f2b1a873e08f679a8d1
This commit is contained in:
commit
d11b60855c
1 file changed
+3
-1
@@ -187,7 +187,9 @@ public interface ActivityControlHelper<T extends BaseDraggingActivity> {
|
||||
int hotseatInset = dp.isSeascape() ? targetInsets.left : targetInsets.right;
|
||||
return dp.hotseatBarSizePx + dp.hotseatBarSidePaddingPx + hotseatInset;
|
||||
} else {
|
||||
return dp.heightPx - outRect.rect.bottom;
|
||||
int shelfHeight = dp.hotseatBarSizePx + dp.getInsets().bottom;
|
||||
// Track slightly below the top of the shelf (between top and content).
|
||||
return shelfHeight - dp.edgeMarginPx * 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user