Browse Source

ChatActivity: fix crash, fix sticker button enabling conditions

develop
Alibek Omarov 3 weeks ago
parent
commit
e13a02e219
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/src/main/java/com/keylesspalace/tusky/components/chat/ChatActivity.kt

+ 2
- 2
app/src/main/java/com/keylesspalace/tusky/components/chat/ChatActivity.kt View File

@@ -385,9 +385,9 @@ class ChatActivity: BottomSheetActivity(),

enableSendButton()
enableButton(attachmentButton, notHaveMedia, notHaveMedia)
enableButton(stickerButton, haveStickers, haveStickers)
enableButton(stickerButton, haveStickers && notHaveMedia, haveStickers && notHaveMedia)

if(!it.isNotEmpty()) {
if(!notHaveMedia) {
val media = it[0]

when(media.type) {


Loading…
Cancel
Save