Skip to content

Commit

Permalink
1. 修改注释
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongjh committed Nov 18, 2024
1 parent 2670252 commit 69c0dd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 69c0dd3

Please sign in to comment.