fix: Fix duplicate entries on non-root installations

This commit is contained in:
Alberto Ponces 2022-09-18 04:44:44 +01:00
parent dd52c379b4
commit 3aa80cacc0

View File

@ -212,7 +212,8 @@ class ManagerAPI {
); );
for (Application app in userApps) { for (Application app in userApps) {
if (app.packageName.startsWith('app.revanced') && if (app.packageName.startsWith('app.revanced') &&
!app.packageName.startsWith('app.revanced.manager.')) { !app.packageName.startsWith('app.revanced.manager.') &&
!patchedApps.any((uapp) => uapp.packageName == app.packageName)) {
ApplicationWithIcon? application = ApplicationWithIcon? application =
await DeviceApps.getApp(app.packageName, true) await DeviceApps.getApp(app.packageName, true)
as ApplicationWithIcon?; as ApplicationWithIcon?;