update to 9.3.2

This commit is contained in:
xaxtix 2022-12-31 14:47:53 +04:00
parent 3ccf875b1b
commit 5a31f93ec2
45 changed files with 482 additions and 159 deletions

View file

@ -12747,7 +12747,7 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat
}
SecureDocument location = secureDocuments.get(index);
f1 = FileLoader.getInstance(currentAccount).getPathToAttach(location, true);
f1 = FileLoader.getInstance(currentAccount).getPathToAttach(location, false);
f2 = FileLoader.getInstance(currentAccount).getPathToAttach(location, false);
} else if (currentPathObject != null) {
f1 = new File(FileLoader.getDirectory(FileLoader.MEDIA_DIR_DOCUMENT), currentFileNames[a]);
f2 = new File(FileLoader.getDirectory(FileLoader.MEDIA_DIR_CACHE), currentFileNames[a]);
@ -15865,7 +15865,7 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat
}
}
if (currentEditMode == EDIT_MODE_PAINT) {
photoPaintView.setTransform(currentScale, currentTranslationX, currentTranslationY, bitmapWidth * scaleToFitX, bitmapHeight * scaleToFitX);
photoPaintView.setTransform(currentScale, currentTranslationX, currentTranslationY + (sendPhotoType == SELECT_TYPE_AVATAR ? AndroidUtilities.statusBarHeight / 2f : 0) * photoPaintView.getRenderView().getScaleX(), bitmapWidth * scaleToFitX, bitmapHeight * scaleToFitX);
}
if (drawCenterImage) {