ChatActivity: fix crash, fix sticker button enabling conditions

main
Alibek Omarov 4 years ago
parent cbe737ef54
commit f18f7aab5c
  1. 4
      app/src/main/java/com/keylesspalace/tusky/components/chat/ChatActivity.kt

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