mirror of https://github.com/NekoX-Dev/NekoX.git
Fix media preview settings
This commit is contained in:
parent
8d0a5aec43
commit
fa12bde023
|
@ -927,7 +927,7 @@ public class DialogCell extends BaseCell {
|
|||
currentMessagePaint = Theme.dialogs_messagePrintingPaint[paintIndex];
|
||||
} else {
|
||||
boolean needEmoji = true;
|
||||
if (currentDialogFolderId == 0 && encryptedChat == null && !message.needDrawBluredPreview() && (message.isPhoto() || message.isNewGif() || message.isVideo())) {
|
||||
if (NekoConfig.mediaPreview && currentDialogFolderId == 0 && encryptedChat == null && !message.needDrawBluredPreview() && (message.isPhoto() || message.isNewGif() || message.isVideo())) {
|
||||
String type = message.isWebpage() ? message.messageOwner.media.webpage.type : null;
|
||||
if (!("app".equals(type) || "profile".equals(type) || "article".equals(type) || type != null && type.startsWith("telegram_"))) {
|
||||
TLRPC.PhotoSize smallThumb = FileLoader.getClosestPhotoSizeWithSize(message.photoThumbs, 40);
|
||||
|
|
|
@ -247,7 +247,7 @@ public class NekoConfig {
|
|||
useProxyItem = preferences.getBoolean("use_proxy_item", true);
|
||||
|
||||
disableAppBarShadow = preferences.getBoolean("disableAppBarShadow", false);
|
||||
mediaPreview = preferences.getBoolean("mediaPreview", false);
|
||||
mediaPreview = preferences.getBoolean("mediaPreview", true);
|
||||
|
||||
proxyAutoSwitch = preferences.getBoolean("proxy_auto_switch", false);
|
||||
//preferences.getBoolean("usePersianCalender", false);
|
||||
|
|
Loading…
Reference in New Issue