Merge "Created a helper method that calculates the hotseat icons shift X." into main
This commit is contained in:
commit
79032facbf
4 files changed
+48
-34
No files matched your search
@@ -1106,15 +1106,10 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer,
|
||||
translationX += mDeviceProfile
|
||||
.getHotseatTranslationXForBubbleBar(isBubblesOnLeft, isRtl);
|
||||
}
|
||||
if (isBubbleBarEnabled() && hasBubbles()) {
|
||||
// TODO(368379159) : create a class to reuse computation logic
|
||||
float adjustedBorderSpace =
|
||||
mDeviceProfile.getHotseatAdjustedBorderSpaceForBubbleBar(this);
|
||||
if (Float.compare(adjustedBorderSpace, 0f) != 0) {
|
||||
float borderSpaceDelta = adjustedBorderSpace - mDeviceProfile.hotseatBorderSpace;
|
||||
translationX +=
|
||||
(int) (mDeviceProfile.iconSizePx + itemInfo.cellX * borderSpaceDelta);
|
||||
}
|
||||
if (isBubbleBarEnabled()
|
||||
&& mDeviceProfile.shouldAdjustHotseatForBubbleBar(getContext(), hasBubbles())) {
|
||||
translationX += (int) mDeviceProfile
|
||||
.getHotseatAdjustedTranslation(getContext(), itemInfo.cellX);
|
||||
}
|
||||
return translationX;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user