1
0
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:
DrKLO 2014-03-06 00:18:25 +04:00
parent ddd022ef6f
commit 8ecb9e97c9
2 changed files with 2 additions and 2 deletions

View File

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

View File

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