|
|
@ -48,6 +48,11 @@ class SearchActivity : AppCompatActivity() { |
|
|
|
override fun onCreate(savedInstanceState: Bundle?) { |
|
|
|
override fun onCreate(savedInstanceState: Bundle?) { |
|
|
|
super.onCreate(savedInstanceState) |
|
|
|
super.onCreate(savedInstanceState) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
artistsRepository = ArtistsSearchRepository(this@SearchActivity, "") |
|
|
|
|
|
|
|
albumsRepository = AlbumsSearchRepository(this@SearchActivity, "") |
|
|
|
|
|
|
|
tracksRepository = TracksSearchRepository(this@SearchActivity, "") |
|
|
|
|
|
|
|
favoritesRepository = FavoritesRepository(this@SearchActivity) |
|
|
|
|
|
|
|
|
|
|
|
binding = ActivitySearchBinding.inflate(layoutInflater) |
|
|
|
binding = ActivitySearchBinding.inflate(layoutInflater) |
|
|
|
|
|
|
|
|
|
|
|
setContentView(binding.root) |
|
|
|
setContentView(binding.root) |
|
|
@ -81,11 +86,6 @@ class SearchActivity : AppCompatActivity() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
artistsRepository = ArtistsSearchRepository(this@SearchActivity, "") |
|
|
|
|
|
|
|
albumsRepository = AlbumsSearchRepository(this@SearchActivity, "") |
|
|
|
|
|
|
|
tracksRepository = TracksSearchRepository(this@SearchActivity, "") |
|
|
|
|
|
|
|
favoritesRepository = FavoritesRepository(this@SearchActivity) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
adapter = |
|
|
|
adapter = |
|
|
|
SearchAdapter( |
|
|
|
SearchAdapter( |
|
|
|
layoutInflater, |
|
|
|
layoutInflater, |
|
|
|