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

Commit f8943d74 authored by Nishant Dande's avatar Nishant Dande
Browse files

Update codebase as per review comment

parent 289860b9
Loading
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -121,10 +121,6 @@ class SearchViewModel @Inject constructor(
        isLoading = true
        val gplaySearchResult = fusedAPIRepository.getGplaySearchResults(query, nextSubBundle)

        if (!gplaySearchResult.isSuccess()) {
//            handleException(gplaySearchResult.exception ?: UnknownSourceException())
        }

        val isFirstFetch = nextSubBundle == null
        nextSubBundle = gplaySearchResult.data?.second

@@ -152,11 +148,6 @@ class SearchViewModel @Inject constructor(
        return currentAppList.distinctBy { it.package_name }
    }

//    private fun handleException(exception: Exception) {
//        exceptionsList.add(exception)
//        exceptionsLiveData.postValue(exceptionsList)
//    }

    /**
     * @return returns true if there is changes in data, otherwise false
     */