1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-04 11:13:36 +00:00

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 { defaultConfig {
minSdkVersion 8 minSdkVersion 8
targetSdkVersion 19 targetSdkVersion 19
versionCode 289 versionCode 290
versionName "1.6.2" versionName "1.6.2"
} }
} }

View File

@ -1111,7 +1111,7 @@ public class FileLoader {
return null; 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(); TLRPC.TL_fileLocation location = new TLRPC.TL_fileLocation();
location.volume_id = Integer.MIN_VALUE; location.volume_id = Integer.MIN_VALUE;

View File

@ -132,6 +132,9 @@ public class ImageReceiver {
last_filter = null; last_filter = null;
currentImage = null; currentImage = null;
last_size = 0; last_size = 0;
if (parentView != null) {
parentView.invalidate();
}
} }
public void setImageBitmap(Drawable bitmap) { public void setImageBitmap(Drawable bitmap) {
@ -145,6 +148,9 @@ public class ImageReceiver {
last_httpUrl = null; last_httpUrl = null;
last_filter = null; last_filter = null;
last_size = 0; last_size = 0;
if (parentView != null) {
parentView.invalidate();
}
} }
public void clearImage() { public void clearImage() {