Fixed broken image resizing in last commit

This commit is contained in:
DrKLO 2014-07-23 20:53:14 +04:00
parent f92df091ef
commit e5cb3685a0
3 changed files with 8 additions and 2 deletions

View file

@ -83,7 +83,7 @@ android {
defaultConfig {
minSdkVersion 8
targetSdkVersion 19
versionCode 289
versionCode 290
versionName "1.6.2"
}
}

View file

@ -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;

View file

@ -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() {