mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: patchable apps not showing if none of them is installed (#1009)
This commit is contained in:
parent
b23dfd4289
commit
2834e8b348
@ -88,7 +88,7 @@ class _AppSelectorViewState extends State<AppSelectorView> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: model.apps.isEmpty
|
: model.allApps.isEmpty
|
||||||
? const AppSkeletonLoader()
|
? const AppSkeletonLoader()
|
||||||
: Padding(
|
: Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12.0)
|
padding: const EdgeInsets.symmetric(horizontal: 12.0)
|
||||||
|
@ -45,9 +45,7 @@ class AppSelectorViewModel extends BaseViewModel {
|
|||||||
.length
|
.length
|
||||||
.compareTo(_patcherAPI.getFilteredPatches(a.packageName).length),
|
.compareTo(_patcherAPI.getFilteredPatches(a.packageName).length),
|
||||||
);
|
);
|
||||||
noApps = apps.isEmpty;
|
|
||||||
getAllApps();
|
getAllApps();
|
||||||
|
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,7 +55,7 @@ class AppSelectorViewModel extends BaseViewModel {
|
|||||||
.toSet()
|
.toSet()
|
||||||
.where((name) => !apps.any((app) => app.packageName == name))
|
.where((name) => !apps.any((app) => app.packageName == name))
|
||||||
.toList();
|
.toList();
|
||||||
|
noApps = allApps.isEmpty;
|
||||||
return allApps;
|
return allApps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user