From 60cdaa04578e3efe02e606039da65a8ba3584454 Mon Sep 17 00:00:00 2001 From: "mudit.pant" Date: Thu, 16 Mar 2017 14:03:10 +0530 Subject: [PATCH] resolved checkstyle errors --- .../coachmarks/ui/presenter/PopUpCoachMarkPresenter.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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,