mirror of
https://github.com/FromGram/android.git
synced 2026-11-19 13:21:41 +03:00
Fixed broken image resizing in last commit
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user