Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d40d3d4 authored by Hasib Prince's avatar Hasib Prince
Browse files

refactor: removed unnecessary nullable parameter

parent bbd79093
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -181,18 +181,18 @@ class SearchFragment :
     */
    private fun updateSearchResult(
        listAdapter: ApplicationListRVAdapter?,
        appList: List<FusedApp>?,
        appList: List<FusedApp>,
        hasMore: Boolean,
    ): Boolean {
        binding.loadingProgressBar.isVisible = hasMore

        val currentList = listAdapter?.currentList ?: listOf()
        if (appList != null && !searchViewModel.isAnyAppUpdated(appList, currentList)) {
        if (!searchViewModel.isAnyAppUpdated(appList, currentList)) {
            return false
        }

        showData()
        listAdapter?.setData(appList!!)
        listAdapter?.setData(appList)
        return true
    }