Fixes #33 : pressing back when playing a hand on the replayer

bs
Laurent 5 years ago
parent 0a7f45c711
commit 9aac503fc9
  1. 5
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayerFragment.kt

@ -61,6 +61,11 @@ class ReplayerFragment : RealmFragment() {
inflater.inflate(R.menu.toolbar_replayer, menu)
}
override fun onPause() {
super.onPause()
pause() // avoid crashes due to the runnable calling a null reference
}
private fun initData() {
val id = arguments?.getString(BundleKey.HAND_HISTORY_ID.value) ?: throw PAIllegalStateException("Attempt to start a replayer without hh id")

Loading…
Cancel
Save