Fixed broken image resizing in last commit
This commit is contained in:
parent
f92df091ef
commit
e5cb3685a0
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user