|
@@ -191,6 +191,7 @@ class ChartActivity : BaseActivity<ChartViewModel>() , View.OnClickListener {
|
|
|
viewModel.queryTimeChart()
|
|
viewModel.queryTimeChart()
|
|
|
progressBar.visibility = View.VISIBLE
|
|
progressBar.visibility = View.VISIBLE
|
|
|
timeChartView.setUpTextInGone(chart_title)
|
|
timeChartView.setUpTextInGone(chart_title)
|
|
|
|
|
+ timeChartView.setIsTimeChart(true)
|
|
|
}
|
|
}
|
|
|
1,2,3,11,12,13,14 -> {
|
|
1,2,3,11,12,13,14 -> {
|
|
|
isTimeChart = false
|
|
isTimeChart = false
|
|
@@ -198,6 +199,7 @@ class ChartActivity : BaseActivity<ChartViewModel>() , View.OnClickListener {
|
|
|
timeChartView.visibility = View.INVISIBLE
|
|
timeChartView.visibility = View.INVISIBLE
|
|
|
viewModel.queryKChart( tab.tag.toString())
|
|
viewModel.queryKChart( tab.tag.toString())
|
|
|
progressBar.visibility = View.VISIBLE
|
|
progressBar.visibility = View.VISIBLE
|
|
|
|
|
+ kChartView.setIsTimeChart(false)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -246,6 +248,10 @@ class ChartActivity : BaseActivity<ChartViewModel>() , View.OnClickListener {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ fun getIsTimeChart():Boolean {
|
|
|
|
|
+ return isTimeChart
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
override fun onDestroy() {
|
|
override fun onDestroy() {
|
|
|
super.onDestroy()
|
|
super.onDestroy()
|
|
|
EventBus.getDefault().unregister(this)
|
|
EventBus.getDefault().unregister(this)
|