mirror of
https://github.com/NekoX-Dev/NekoX.git
synced 2024-12-24 18:35:57 +01:00
Fixed blurry images in secret chats on some devices
This commit is contained in:
parent
ddd022ef6f
commit
8ecb9e97c9
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.telegram.messenger"
|
||||
android:versionCode="184"
|
||||
android:versionCode="185"
|
||||
android:versionName="1.3.26">
|
||||
|
||||
<supports-screens android:anyDensity="true"
|
||||
|
@ -62,7 +62,7 @@ public class PhotoObject {
|
||||
for (TLRPC.PhotoSize obj : sizes) {
|
||||
int diffW = Math.abs(obj.w - width);
|
||||
int diffH = Math.abs(obj.h - height);
|
||||
if (closestObject == null || closestWidth > diffW || closestHeight > diffH) {
|
||||
if (closestObject == null || closestObject instanceof TLRPC.TL_photoCachedSize || closestWidth > diffW || closestHeight > diffH) {
|
||||
closestObject = obj;
|
||||
closestWidth = diffW;
|
||||
closestHeight = diffH;
|
||||
|
Loading…
Reference in New Issue
Block a user