mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-25 17:51:02 +00:00
fix: stats hardware acceleration glitch
This commit is contained in:
@@ -34,6 +34,7 @@ class ChartItem(
|
||||
) {
|
||||
}
|
||||
}
|
||||
binding.chartView.setLayerType(View.LAYER_TYPE_SOFTWARE, null)
|
||||
binding.chartView.callBack = callback
|
||||
binding.chartView.reload()
|
||||
binding.chartView.aa_drawChartWithChartOptions(aaOptions)
|
||||
|
||||
@@ -51,10 +51,9 @@ class StatsFragment :
|
||||
user = arguments?.getSerializable("user") as Query.UserProfile
|
||||
|
||||
binding.statisticList.adapter = adapter
|
||||
binding.statisticList.setHasFixedSize(true)
|
||||
binding.statisticList.recycledViewPool.setMaxRecycledViews(0, 0)
|
||||
binding.statisticList.isNestedScrollingEnabled = true
|
||||
binding.statisticList.layoutManager = LinearLayoutManager(requireContext())
|
||||
binding.statisticList.layoutManager = LinearLayoutManager(requireContext(), LinearLayoutManager.VERTICAL, false)
|
||||
binding.statisticProgressBar.visibility = View.VISIBLE
|
||||
binding.compare.visibility = if (user.id == Anilist.userid) View.GONE else View.VISIBLE
|
||||
binding.filterContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> { topMargin = statusBarHeight }
|
||||
|
||||
Reference in New Issue
Block a user