preparing the viewpager tabs for search
This commit is contained in:
parent
075d2e57f0
commit
2200a8b1d5
6 changed files with 51 additions and 0 deletions
|
@ -53,4 +53,13 @@ class AlbumsFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
|
||||||
override fun finishActMode() {
|
override fun finishActMode() {
|
||||||
(albums_list.adapter as? MyRecyclerViewAdapter)?.finishActMode()
|
(albums_list.adapter as? MyRecyclerViewAdapter)?.finishActMode()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onSearchQueryChanged(text: String) {
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onSearchOpened() {
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onSearchClosed() {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,4 +41,13 @@ class ArtistsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
|
||||||
override fun finishActMode() {
|
override fun finishActMode() {
|
||||||
(artists_list.adapter as? MyRecyclerViewAdapter)?.finishActMode()
|
(artists_list.adapter as? MyRecyclerViewAdapter)?.finishActMode()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onSearchQueryChanged(text: String) {
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onSearchOpened() {
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onSearchClosed() {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,4 +9,10 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
||||||
abstract fun setupFragment(activity: SimpleActivity)
|
abstract fun setupFragment(activity: SimpleActivity)
|
||||||
|
|
||||||
abstract fun finishActMode()
|
abstract fun finishActMode()
|
||||||
|
|
||||||
|
abstract fun onSearchQueryChanged(text: String)
|
||||||
|
|
||||||
|
abstract fun onSearchOpened()
|
||||||
|
|
||||||
|
abstract fun onSearchClosed()
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,4 +123,13 @@ class OldSongsFragment(context: Context, attributeSet: AttributeSet) : MyViewPag
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onSearchQueryChanged(text: String) {
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onSearchOpened() {
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onSearchClosed() {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,4 +48,13 @@ class PlaylistsFragment(context: Context, attributeSet: AttributeSet) : MyViewPa
|
||||||
override fun finishActMode() {
|
override fun finishActMode() {
|
||||||
(playlists_list.adapter as? MyRecyclerViewAdapter)?.finishActMode()
|
(playlists_list.adapter as? MyRecyclerViewAdapter)?.finishActMode()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onSearchQueryChanged(text: String) {
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onSearchOpened() {
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onSearchClosed() {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,4 +63,13 @@ class TracksFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
|
||||||
override fun finishActMode() {
|
override fun finishActMode() {
|
||||||
(tracks_list.adapter as? MyRecyclerViewAdapter)?.finishActMode()
|
(tracks_list.adapter as? MyRecyclerViewAdapter)?.finishActMode()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onSearchQueryChanged(text: String) {
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onSearchOpened() {
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onSearchClosed() {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue