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

Commit b9b0f890 authored by Guillaume Jacquart's avatar Guillaume Jacquart
Browse files

Update PR

parent 730c2bc7
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -63,8 +63,7 @@
            android:launchMode="singleTask">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER"/>
<!--                <category android:name="android.intent.category.INFO"/>-->
                <category android:name="android.intent.category.INFO"/>
            </intent-filter>
        </activity>
    </application>
+11 −11
Original line number Diff line number Diff line
@@ -176,8 +176,11 @@ class TrackersStatisticsUseCase(
                        blockedLeaks = blockedLeaks,
                        leaks = leaks
                    )
                }.sortedWith(
                    Comparator { o1, o2 ->
                }.sortedWith(mostLeakedAppsComparator)
            }
    }

    private val mostLeakedAppsComparator: Comparator<AppWithCounts> = Comparator { o1, o2 ->
        val leaks = o2.leaks - o1.leaks
        if (leaks != 0) leaks else {
            val whitelisted = o2.whiteListedTrackersCount - o1.whiteListedTrackersCount
@@ -186,9 +189,6 @@ class TrackersStatisticsUseCase(
            }
        }
    }
                )
            }
    }

    fun getNonBlockedTrackersCount(): Flow<Int> {
        return if (blockTrackersPrivacyModule.isBlockingEnabled())