|
|
|
|
@ -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") |
|
|
|
|
} |
|
|
|
|
|