diff --git a/coachmarks/src/main/java/com/myntra/coachmarks/ui/presenter/PopUpCoachMarkPresenter.java b/coachmarks/src/main/java/com/myntra/coachmarks/ui/presenter/PopUpCoachMarkPresenter.java index 1fdc400..cccb252 100644 --- a/coachmarks/src/main/java/com/myntra/coachmarks/ui/presenter/PopUpCoachMarkPresenter.java +++ b/coachmarks/src/main/java/com/myntra/coachmarks/ui/presenter/PopUpCoachMarkPresenter.java @@ -242,12 +242,12 @@ private void setNotchDisplayEdge(int position, coachMarkDimenInPixel.getPopUpHeightInPixels(), coachMarkDimenInPixel.getNotchDimenInPixels()); notchMarginRect = new Rect(NO_MARGIN, - notchPosition - (int)(MULTIPLICATION_FACTOR_NOTCH_POSITION * coachMarkDimenInPixel.getMarginOffsetForNotchInPixels()), + notchPosition - (int) (MULTIPLICATION_FACTOR_NOTCH_POSITION * coachMarkDimenInPixel.getMarginOffsetForNotchInPixels()), NO_MARGIN, NO_MARGIN); mPresentation.setNotchPositionIfPopUpBottomRight(notchMarginRect, ROTATION_270); notchUiAdjustmentMarginRect = new Rect(NO_MARGIN, - notchPosition + (int)(MULTIPLICATION_FACTOR_FOR_UI_ADJUSTMENT_RIGHT * coachMarkDimenInPixel.getMarginOffsetForNotchInPixels() + PIXEL_ADJUSTMENT_NOTCH), + notchPosition + (int) (MULTIPLICATION_FACTOR_FOR_UI_ADJUSTMENT_RIGHT * coachMarkDimenInPixel.getMarginOffsetForNotchInPixels() + PIXEL_ADJUSTMENT_NOTCH), NO_MARGIN, NO_MARGIN); mPresentation.uiAdjustmentForNotchIfPopUpRight(notchUiAdjustmentMarginRect); @@ -272,7 +272,7 @@ private void setNotchDisplayEdge(int position, NO_MARGIN); mPresentation.setNotchPositionIfPopUpBottomRight(notchMarginRect, ROTATION_0); notchUiAdjustmentMarginRect = new Rect(notchPosition + - (int)(MULTIPLICATION_FACTOR_FOR_NOTCH_UI_ADJUSTMENT_BOTTOM * + (int) (MULTIPLICATION_FACTOR_FOR_NOTCH_UI_ADJUSTMENT_BOTTOM * coachMarkDimenInPixel.getMarginOffsetForNotchInPixels()), NO_MARGIN, NO_MARGIN, @@ -338,7 +338,6 @@ private int findCoachMarkTextPopUpDisplayPosition(Point anchorTop, } - private void setImageParamsAndPosition(Point anchorTop, Point anchorBottom, int imageWidth, int imageHeight, @ColorRes int backGroundTintForImage,