6.0.8 commit

This commit is contained in:
Xilin Jia 2024-07-10 22:49:56 +01:00
parent 0f99aa2dd7
commit 2943f2759e
3 changed files with 1 additions and 7 deletions

View File

@ -17,7 +17,7 @@ class OnlineFeedsAdapter(private val context: Context, objects: List<PodcastSear
: ArrayAdapter<PodcastSearchResult?>(context, 0, objects) {
// List holding the podcasts found in the search
private val data: MutableList<PodcastSearchResult> = objects.toMutableList()
private val data: List<PodcastSearchResult> = objects
@UnstableApi override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
val podcast: PodcastSearchResult = data[position]
@ -65,10 +65,6 @@ class OnlineFeedsAdapter(private val context: Context, objects: List<PodcastSear
return view
}
fun clearData() {
data.clear()
}
internal class PodcastViewHolder(view: View) {
val binding = OnlinePodcastListitemBinding.bind(view)

View File

@ -131,7 +131,6 @@ class DiscoveryFragment : Fragment(), Toolbar.OnMenuItemClickListener {
override fun onDestroy() {
_binding = null
adapter?.clearData()
adapter = null
searchResults = null
topList = null

View File

@ -99,7 +99,6 @@ class OnlineSearchFragment : Fragment() {
override fun onDestroy() {
_binding = null
searchResults = null
adapter?.clearData()
adapter = null
super.onDestroy()
}