feat(Media List view): switch between grid and list view
This commit is contained in:
parent
3a88656e21
commit
e9551be62d
6 changed files with 75 additions and 19 deletions
|
@ -232,9 +232,9 @@ class HomeFragment : Fragment() {
|
|||
LinearLayoutManager.HORIZONTAL,
|
||||
false
|
||||
)
|
||||
more.setOnClickListener { _ ->
|
||||
more.setOnClickListener { i ->
|
||||
ContextCompat.startActivity(
|
||||
requireActivity(), Intent(requireActivity(), MediaListViewActivity::class.java)
|
||||
i.context, Intent(i.context, MediaListViewActivity::class.java)
|
||||
.putExtra("title", string)
|
||||
.putExtra("media", it),
|
||||
null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue