preparing the viewpager tabs for search

This commit is contained in:
tibbi 2020-10-20 14:11:35 +02:00
parent 075d2e57f0
commit 2200a8b1d5
6 changed files with 51 additions and 0 deletions

View file

@ -53,4 +53,13 @@ class AlbumsFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
override fun finishActMode() {
(albums_list.adapter as? MyRecyclerViewAdapter)?.finishActMode()
}
override fun onSearchQueryChanged(text: String) {
}
override fun onSearchOpened() {
}
override fun onSearchClosed() {
}
}

View file

@ -41,4 +41,13 @@ class ArtistsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
override fun finishActMode() {
(artists_list.adapter as? MyRecyclerViewAdapter)?.finishActMode()
}
override fun onSearchQueryChanged(text: String) {
}
override fun onSearchOpened() {
}
override fun onSearchClosed() {
}
}

View file

@ -9,4 +9,10 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
abstract fun setupFragment(activity: SimpleActivity)
abstract fun finishActMode()
abstract fun onSearchQueryChanged(text: String)
abstract fun onSearchOpened()
abstract fun onSearchClosed()
}

View file

@ -123,4 +123,13 @@ class OldSongsFragment(context: Context, attributeSet: AttributeSet) : MyViewPag
}
})
}
override fun onSearchQueryChanged(text: String) {
}
override fun onSearchOpened() {
}
override fun onSearchClosed() {
}
}

View file

@ -48,4 +48,13 @@ class PlaylistsFragment(context: Context, attributeSet: AttributeSet) : MyViewPa
override fun finishActMode() {
(playlists_list.adapter as? MyRecyclerViewAdapter)?.finishActMode()
}
override fun onSearchQueryChanged(text: String) {
}
override fun onSearchOpened() {
}
override fun onSearchClosed() {
}
}

View file

@ -63,4 +63,13 @@ class TracksFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
override fun finishActMode() {
(tracks_list.adapter as? MyRecyclerViewAdapter)?.finishActMode()
}
override fun onSearchQueryChanged(text: String) {
}
override fun onSearchOpened() {
}
override fun onSearchClosed() {
}
}