diff --git a/app/src/main/java/player/phonograph/ui/modules/search/SearchActivity.kt b/app/src/main/java/player/phonograph/ui/modules/search/SearchActivity.kt index 004365847..bb94ede87 100644 --- a/app/src/main/java/player/phonograph/ui/modules/search/SearchActivity.kt +++ b/app/src/main/java/player/phonograph/ui/modules/search/SearchActivity.kt @@ -21,7 +21,7 @@ import player.phonograph.mechanism.event.MediaStoreTracker import player.phonograph.settings.Keys import player.phonograph.settings.Setting import player.phonograph.ui.components.popup.OptionsPopup -import player.phonograph.ui.modules.panel.AbsMusicServiceActivity +import player.phonograph.ui.modules.panel.AbsSlidingMusicPanelActivity import player.phonograph.util.theme.accentColor import player.phonograph.util.theme.getTintedDrawable import player.phonograph.util.theme.primaryColor @@ -42,9 +42,10 @@ import android.os.Bundle import android.view.LayoutInflater import android.view.Menu import android.view.MenuItem +import android.view.View import kotlinx.coroutines.launch -class SearchActivity : AbsMusicServiceActivity(), SearchView.OnQueryTextListener, +class SearchActivity : AbsSlidingMusicPanelActivity(), SearchView.OnQueryTextListener, ICreateFileStorageAccessible, IOpenFileStorageAccessible, IOpenDirStorageAccessible { private var viewBinding: ActivitySearchBinding? = null @@ -72,8 +73,6 @@ class SearchActivity : AbsMusicServiceActivity(), SearchView.OnQueryTextListener super.onCreate(savedInstanceState) - setContentView(binding.root) - setUpToolBar() setUpPager() @@ -96,6 +95,8 @@ class SearchActivity : AbsMusicServiceActivity(), SearchView.OnQueryTextListener lifecycle.addObserver(MediaStoreListener()) } + override fun createContentView(): View = wrapSlidingMusicPanel(binding.root) + private fun setUpPager() { val primaryColor = primaryColor() val accentColor = accentColor()