mirror of
https://github.com/olgamiller/SSTVEncoder2.git
synced 2026-01-08 01:30:01 +01:00
Invalidate CropView in setModeSize also if no image is loaded
This commit is contained in:
parent
780f641242
commit
d67719abd8
|
|
@ -139,10 +139,9 @@ public class CropView extends ImageView {
|
|||
public void setModeSize(ModeSize size) {
|
||||
mModeSize = size;
|
||||
mOutputRect = Utility.getEmbeddedRect(getWidth(), getHeight(), mModeSize.width(), mModeSize.height());
|
||||
if (mImageOK) {
|
||||
if (mImageOK)
|
||||
resetInputRect();
|
||||
invalidate();
|
||||
}
|
||||
invalidate();
|
||||
}
|
||||
|
||||
private void resetInputRect() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue