Fix bug where video dimensions aren't always correct in chat view.

This commit is contained in:
Greyson Parrelli
2026-02-23 15:33:21 -05:00
committed by Cody Henthorne
parent d28fc98cfd
commit 08509f6693
6 changed files with 85 additions and 12 deletions

View File

@@ -49,8 +49,11 @@ public final class SlideFactory {
} else {
Slide result = getContentResolverSlideInfo(context, mediaType, uri, width, height, transformProperties);
if (result == null) return getManuallyCalculatedSlideInfo(context, mediaType, uri, width, height, transformProperties);
else return result;
if (result == null) {
return getManuallyCalculatedSlideInfo(context, mediaType, uri, width, height, transformProperties);
} else {
return result;
}
}
} catch (IOException e) {
Log.w(TAG, e);
@@ -86,6 +89,7 @@ public final class SlideFactory {
Log.d(TAG, "remote slide with size " + fileSize + " took " + (System.currentTimeMillis() - start) + "ms");
return mediaType.createSlide(context, uri, fileName, mimeType, null, fileSize, width, height, false, transformProperties);
} else {
}
}