Skip to content

Commit

Permalink
Show toast on click, not only on long-clicks.
Browse files Browse the repository at this point in the history
  • Loading branch information
mopsalarm committed Jun 6, 2017
1 parent 0ee588e commit aad2849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/pr0gramm/app/ui/views/UserInfoCell.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import android.widget.TextView
import android.widget.Toast
import com.github.salomonbrys.kodein.android.appKodein
import com.github.salomonbrys.kodein.instance
import com.jakewharton.rxbinding.view.longClicks
import com.jakewharton.rxbinding.view.clicks
import com.pr0gramm.app.R
import com.pr0gramm.app.UserClasses
import com.pr0gramm.app.api.pr0gramm.Api.Info
Expand Down Expand Up @@ -139,7 +139,7 @@ class UserInfoCell(context: Context, userInfo: Info,

val view = layoutInflater.inflate(R.layout.badge, badgesContainer, false)

view.longClicks().subscribe {
view.clicks().subscribe {
Toast.makeText(context, description, Toast.LENGTH_SHORT).show()
}

Expand Down

0 comments on commit aad2849

Please sign in to comment.