Skip to content

Commit

Permalink
Disable fast scroller in setup and components fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva committed Apr 8, 2020
1 parent 7b395fb commit 8581e4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class ComponentsFragment : BaseFramesFragment<Component>() {

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
recyclerView?.setFastScrollEnabled(false)
val columnsCount = context?.integer(R.integer.wallpapers_columns_count, 2) ?: 2
val gridLayoutManager =
GridLayoutManager(context, columnsCount, GridLayoutManager.VERTICAL, false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class SetupFragment : BaseFramesFragment<RequiredApp>() {

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
recyclerView?.setFastScrollEnabled(false)
recyclerView?.layoutManager =
LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false)
recyclerView?.adapter = requiredAppsAdapter
Expand Down

0 comments on commit 8581e4c

Please sign in to comment.