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

Commit 17914931 authored by Hasib Prince's avatar Hasib Prince
Browse files

Fixed lint issues

parent 116b6a67
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -125,7 +125,6 @@ class DownloadManager @Inject constructor(
        } catch (e: Exception) {
            Timber.e(e)
        }

    }

    private fun tickerFlow(downloadId: Long, period: Duration, initialDelay: Duration = Duration.ZERO) = flow {
+11 −12
Original line number Diff line number Diff line
@@ -229,9 +229,11 @@ class FusedAPIImpl @Inject constructor(
        return liveData {
            val packageSpecificResults = ArrayList<FusedApp>()
            fetchPackageSpecificResult(authData, query, packageSpecificResults)?.let {
                if (it.data?.second == true) { // if there are no data to load
                    emit(it)
                    return@liveData
                }
            }

            val searchResult = mutableListOf<FusedApp>()
            val cleanApkResults = mutableListOf<FusedApp>()
@@ -320,7 +322,8 @@ class FusedAPIImpl @Inject constructor(
                        searchResult,
                        packageSpecificResults,
                        query
                    ), it.second
                    ),
                    it.second
                )
            )
        }
@@ -349,7 +352,6 @@ class FusedAPIImpl @Inject constructor(
                    preferenceManagerModule.isGplaySelected() || preferenceManagerModule.isPWASelected()
                )
            )

        }
        return null
    }
@@ -362,7 +364,6 @@ class FusedAPIImpl @Inject constructor(
        var gplayPackageResult: FusedApp? = null
        var cleanapkPackageResult: FusedApp? = null


        val status = runCodeBlockWithTimeout({
            if (preferenceManagerModule.isGplaySelected()) {
                gplayPackageResult = getGplayPackagResult(query, authData)
@@ -382,7 +383,6 @@ class FusedAPIImpl @Inject constructor(
            gplayPackageResult?.let { packageSpecificResults.add(it) }
        }


        /*
         * If there was a timeout, return it and don't try to fetch anything else.
         * Also send true in the pair to signal more results being loaded.
@@ -498,7 +498,6 @@ class FusedAPIImpl @Inject constructor(
        return null
    }


    suspend fun updateFusedDownloadWithDownloadingInfo(
        authData: AuthData,
        origin: Origin,
@@ -1211,9 +1210,9 @@ class FusedAPIImpl @Inject constructor(
     * Home screen-related internal functions
     */

    private suspend fun generateCleanAPKHome(home: Home, prefType: String): List<FusedHome> {
    private suspend fun generateCleanAPKHome(home: Home, appType: String): List<FusedHome> {
        val list = mutableListOf<FusedHome>()
        val headings = if (prefType == APP_TYPE_OPEN) {
        val headings = if (appType == APP_TYPE_OPEN) {
            mapOf(
                "top_updated_apps" to context.getString(R.string.top_updated_apps),
                "top_updated_games" to context.getString(R.string.top_updated_games),
@@ -1303,7 +1302,7 @@ class FusedAPIImpl @Inject constructor(
            }
        }
        return list.map {
            it.source = prefType
            it.source = appType
            it
        }
    }
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentEnd="true"
            android:layout_marginEnd="15dp"
            android:layout_marginEnd="14dp"
            android:background="@drawable/bg_tag_rounded"
            android:paddingStart="6dp"
            android:paddingTop="2dp"
+0 −3
Original line number Diff line number Diff line
@@ -88,7 +88,6 @@ class FusedApiImplTest {
    @Mock
    private lateinit var gPlayAPIRepository: GPlayAPIRepository


    private lateinit var preferenceManagerModule: FakePreferenceModule

    @Before
@@ -754,13 +753,11 @@ class FusedApiImplTest {

        setupMockingSearchApp(packageNameSearchResponse, authData, packageResult, gplayLivedata)


        val searchResultLiveData = fusedAPIImpl.getSearchResults("com.search.package", authData)
        var size = -1
        val observer = Observer<ResultSupreme<Pair<List<FusedApp>, Boolean>>> {
            size = it.data?.first?.size ?: -2
            println("search result: $size")

        }
        searchResultLiveData.observeForever(observer)
        delay(3000)
+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

Loading