Skip to content

Commit

Permalink
[Refactor] - Search : Fixes Play & Pause buttons overlap issue (AIC-581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer Dhakal authored and caguilar187 committed Oct 24, 2018
1 parent ca29173 commit fee3328
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions map/src/main/kotlin/edu/artic/map/SearchedObjectsAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ class SearchedObjectsAdapter : AutoHolderRecyclerViewAdapter<SearchObjectBaseVie
item.playState.subscribe {playBackState->
when (playBackState) {
is AudioPlayerService.PlayBackState.Playing -> {
view.playCurrent.visibility = View.INVISIBLE
view.pauseCurrent.visibility = View.VISIBLE
view.post {
view.playCurrent.visibility = View.INVISIBLE
view.pauseCurrent.visibility = View.VISIBLE
}
}
is AudioPlayerService.PlayBackState.Paused -> {
view.playCurrent.visibility = View.VISIBLE
Expand Down

0 comments on commit fee3328

Please sign in to comment.