|
|
|
|
@ -2,6 +2,7 @@ package net.pokeranalytics.android.ui.fragment |
|
|
|
|
|
|
|
|
|
import android.os.Bundle |
|
|
|
|
import android.view.* |
|
|
|
|
import android.view.animation.OvershootInterpolator |
|
|
|
|
import android.widget.Toast |
|
|
|
|
import androidx.interpolator.view.animation.FastOutSlowInInterpolator |
|
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager |
|
|
|
|
@ -155,14 +156,20 @@ class SessionFragment : PokerAnalyticsFragment(), RowRepresentableDelegate, Bott |
|
|
|
|
SessionState.PENDING -> { |
|
|
|
|
floatingActionButton.setImageResource(R.drawable.ic_outline_play) |
|
|
|
|
bottomAppBar.menu.findItem(R.id.stop).isVisible = false |
|
|
|
|
floatingActionButton.animate().scaleX(1f).scaleY(1f).alpha(1f) |
|
|
|
|
.setInterpolator(OvershootInterpolator()).start() |
|
|
|
|
} |
|
|
|
|
SessionState.STARTED -> { |
|
|
|
|
floatingActionButton.setImageResource(R.drawable.ic_outline_pause) |
|
|
|
|
bottomAppBar.menu.findItem(R.id.stop).isVisible = true |
|
|
|
|
floatingActionButton.animate().scaleX(1f).scaleY(1f).alpha(1f) |
|
|
|
|
.setInterpolator(OvershootInterpolator()).start() |
|
|
|
|
} |
|
|
|
|
SessionState.PAUSED -> { |
|
|
|
|
floatingActionButton.setImageResource(R.drawable.ic_outline_play) |
|
|
|
|
bottomAppBar.menu.findItem(R.id.stop).isVisible = true |
|
|
|
|
floatingActionButton.animate().scaleX(1f).scaleY(1f).alpha(1f) |
|
|
|
|
.setInterpolator(OvershootInterpolator()).start() |
|
|
|
|
} |
|
|
|
|
SessionState.FINISHED -> { |
|
|
|
|
bottomAppBar.menu.findItem(R.id.stop).isVisible = false |
|
|
|
|
|