mirror of
https://github.com/olgamiller/SSTVEncoder2.git
synced 2026-04-20 05:33:52 +00:00
Invalidate CropView in setModeSize also if no image is loaded
This commit is contained in:
parent
780f641242
commit
d67719abd8
1 changed files with 2 additions and 3 deletions
|
|
@ -139,10 +139,9 @@ public class CropView extends ImageView {
|
||||||
public void setModeSize(ModeSize size) {
|
public void setModeSize(ModeSize size) {
|
||||||
mModeSize = size;
|
mModeSize = size;
|
||||||
mOutputRect = Utility.getEmbeddedRect(getWidth(), getHeight(), mModeSize.width(), mModeSize.height());
|
mOutputRect = Utility.getEmbeddedRect(getWidth(), getHeight(), mModeSize.width(), mModeSize.height());
|
||||||
if (mImageOK) {
|
if (mImageOK)
|
||||||
resetInputRect();
|
resetInputRect();
|
||||||
invalidate();
|
invalidate();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void resetInputRect() {
|
private void resetInputRect() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue