Commit e5cb3685 authored by DrKLO's avatar DrKLO

Fixed broken image resizing in last commit

parent f92df091
......@@ -83,7 +83,7 @@ android {
defaultConfig {
minSdkVersion 8
targetSdkVersion 19
versionCode 289
versionCode 290
versionName "1.6.2"
}
}
......@@ -1111,7 +1111,7 @@ public class FileLoader {
return null;
}
Bitmap scaledBitmap = Bitmap.createScaledBitmap(bitmap, h, w, true);
Bitmap scaledBitmap = Bitmap.createScaledBitmap(bitmap, w, h, true);
TLRPC.TL_fileLocation location = new TLRPC.TL_fileLocation();
location.volume_id = Integer.MIN_VALUE;
......
......@@ -132,6 +132,9 @@ public class ImageReceiver {
last_filter = null;
currentImage = null;
last_size = 0;
if (parentView != null) {
parentView.invalidate();
}
}
public void setImageBitmap(Drawable bitmap) {
......@@ -145,6 +148,9 @@ public class ImageReceiver {
last_httpUrl = null;
last_filter = null;
last_size = 0;
if (parentView != null) {
parentView.invalidate();
}
}
public void clearImage() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment