mirror of
https://github.com/olgamiller/SSTVEncoder2.git
synced 2026-04-05 14:25:41 +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) {
|
||||
mModeSize = size;
|
||||
mOutputRect = Utility.getEmbeddedRect(getWidth(), getHeight(), mModeSize.width(), mModeSize.height());
|
||||
if (mImageOK) {
|
||||
if (mImageOK)
|
||||
resetInputRect();
|
||||
invalidate();
|
||||
}
|
||||
invalidate();
|
||||
}
|
||||
|
||||
private void resetInputRect() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue