avoid crash

realmasync
Laurent 3 years ago
parent 004bf5031a
commit 3ca625f898
  1. 3
      app/src/main/java/net/pokeranalytics/android/ui/fragment/GraphFragment.kt

@ -70,7 +70,8 @@ class GraphFragment : RealmFragment(), OnChartValueSelectedListener {
val styleIndex = bundle.getInt(BundleKey.STYLE.value)
return Graph.Style.values()[styleIndex]
} else {
throw PAIllegalStateException("Style not defined for $this")
return Graph.Style.LINE
// throw PAIllegalStateException("Style not defined for $this")
}
} ?: throw PAIllegalStateException("Style and bundle not defined for $this")
}

Loading…
Cancel
Save