Skip to content

Commit

Permalink
removed unnecessary temporary val and null check
Browse files Browse the repository at this point in the history
  • Loading branch information
mzorz committed Nov 19, 2019
1 parent 4988824 commit 78ffcf3
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,8 @@ class EmojiPickerFragment : BottomSheetDialogFragment() {
override fun onInitialized() {
EmojiCompat.get().unregisterInitCallback(this)

val regularTextView = holder.txtEmojiRef
if (regularTextView != null) {
val compat = EmojiCompat.get()
regularTextView.text = compat.process(emojiList[position])
}
val compat = EmojiCompat.get()
holder.txtEmojiRef.text = compat.process(emojiList[position])
}

override fun onFailed(throwable: Throwable?) {
Expand Down

0 comments on commit 78ffcf3

Please sign in to comment.