Add "Hide time under stickers"
This commit is contained in:
@@ -23,6 +23,8 @@ object ExteraConfig {
|
||||
// Chats
|
||||
// Stickers
|
||||
var stickerSize by sharedPreferences.int("stickerSize", 100)
|
||||
var hideStickerTime by sharedPreferences.boolean("hideStickerTime", false)
|
||||
|
||||
// General
|
||||
var hideKeyboardOnScroll by sharedPreferences.boolean("hideKeyboardOnScroll", true)
|
||||
var archiveOnPull by sharedPreferences.boolean("archiveOnPull", true)
|
||||
|
||||
@@ -29,6 +29,15 @@ class ChatsPreferencesEntry : BasePreferencesEntry {
|
||||
}
|
||||
}
|
||||
}
|
||||
switch {
|
||||
title = LocaleController.getString("StickerTime", R.string.StickerTime)
|
||||
|
||||
contract({
|
||||
return@contract ExteraConfig.hideStickerTime
|
||||
}) {
|
||||
ExteraConfig.hideStickerTime = it
|
||||
}
|
||||
}
|
||||
}
|
||||
category(LocaleController.getString("General", R.string.General)) {
|
||||
switch {
|
||||
|
||||
@@ -11150,7 +11150,7 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate
|
||||
if ((!autoPlayingMedia || !MediaController.getInstance().isPlayingMessageAndReadyToDraw(currentMessageObject) || isRoundVideo) && !transitionParams.animateBackgroundBoundsInner) {
|
||||
drawOverlays(canvas);
|
||||
}
|
||||
if ((drawTime || !mediaBackground) && !forceNotDrawTime && !transitionParams.animateBackgroundBoundsInner && !(enterTransitionInProgress && !currentMessageObject.isVoice())) {
|
||||
if ((drawTime || !mediaBackground) && !forceNotDrawTime && !transitionParams.animateBackgroundBoundsInner && !(enterTransitionInProgress && !currentMessageObject.isVoice()) && (!currentMessageObject.isAnyKindOfSticker() || !ExteraConfig.INSTANCE.getHideStickerTime())) {
|
||||
drawTime(canvas, 1f, false);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
<!-- Chats -->
|
||||
<string name="StickerSize">Stickers size</string>
|
||||
<string name="StickerTime">Hide time under stickers</string>
|
||||
|
||||
<string name="HideKeyboardOnScroll">Hide Keyboard on Scrolling</string>
|
||||
<string name="ArchiveOnPull">Open Archive on Pulldown</string>
|
||||
|
||||
Reference in New Issue
Block a user