Migrate to new Share APIs.

This commit is contained in:
Alex Hart
2021-07-09 12:59:26 -03:00
committed by Greyson Parrelli
parent 68a2d5ed20
commit 3f53abedab
11 changed files with 70 additions and 275 deletions

View File

@@ -13,7 +13,7 @@ import androidx.core.content.ContextCompat
import androidx.core.content.res.use
import androidx.core.view.ViewCompat
import androidx.core.widget.ImageViewCompat
import androidx.core.widget.addTextChangedListener
import androidx.core.widget.doAfterTextChanged
import org.thoughtcrime.securesms.R
import org.thoughtcrime.securesms.animation.AnimationCompleteListener
import org.thoughtcrime.securesms.animation.ResizeAnimation
@@ -47,7 +47,7 @@ class KeyboardPageSearchView @JvmOverloads constructor(
clearButton = findViewById(R.id.emoji_search_clear_icon)
input = findViewById(R.id.emoji_search_entry)
input.addTextChangedListener {
input.doAfterTextChanged {
if (it.isNullOrEmpty()) {
clearButton.setImageDrawable(null)
clearButton.isClickable = false