From 69c0dd3dd93d467bcdbba27d5e7f2ac56c47984b Mon Sep 17 00:00:00 2001 From: zhongjh <20249019> Date: Mon, 18 Nov 2024 14:45:46 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/zhongjh/imageedit/core/ImageCustom.java | 6 +++--- .../java/com/zhongjh/imageedit/view/ImageViewCustom.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/imageedit/src/main/java/com/zhongjh/imageedit/core/ImageCustom.java b/imageedit/src/main/java/com/zhongjh/imageedit/core/ImageCustom.java index a67d07e2..554b6a3d 100644 --- a/imageedit/src/main/java/com/zhongjh/imageedit/core/ImageCustom.java +++ b/imageedit/src/main/java/com/zhongjh/imageedit/core/ImageCustom.java @@ -337,7 +337,7 @@ private void makeMosaicBitmap() { private void onImageChanged() { Log.d(TAG, "onImageChanged"); isInitialHoming = false; - onWindowChanged(mWindow.width(), mWindow.height()); + onLayout(mWindow.width(), mWindow.height()); if (mMode == ImageMode.CLIP) { mClipWin.reset(mClipFrame, getTargetRotate()); @@ -519,8 +519,8 @@ public void onRemoveSticker(ImageSticker sticker) { } } - public void onWindowChanged(float width, float height) { - Log.d(TAG, "onWindowChanged"); + public void onLayout(float width, float height) { + Log.d(TAG, "onLayout"); if (width == 0 || height == 0) { return; } diff --git a/imageedit/src/main/java/com/zhongjh/imageedit/view/ImageViewCustom.java b/imageedit/src/main/java/com/zhongjh/imageedit/view/ImageViewCustom.java index e7849ffb..1725e623 100644 --- a/imageedit/src/main/java/com/zhongjh/imageedit/view/ImageViewCustom.java +++ b/imageedit/src/main/java/com/zhongjh/imageedit/view/ImageViewCustom.java @@ -365,7 +365,7 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto Log.d(TAG, "onLayout"); super.onLayout(changed, left, top, right, bottom); if (changed) { - mImage.onWindowChanged(right - left, bottom - top); + mImage.onLayout(right - left, bottom - top); } }