fix: Fix patched APKs exports after installation

This commit is contained in:
oSumAtrIX
2024-03-04 13:42:14 +01:00
parent 02722fc0be
commit 1200360588
3 changed files with 7 additions and 4 deletions

View File

@ -43,7 +43,7 @@ class HomeViewModel extends BaseViewModel {
File? downloadedApk;
Future<void> initialize(BuildContext context) async {
_managerAPI.rePatchedSavedApps().then((_) => _getPatchedApps());
_managerAPI.reAssessPatchedApps().then((_) => getPatchedApps());
_currentManagerVersion = await _managerAPI.getCurrentManagerVersion();
if (!_managerAPI.getDownloadConsent()) {
await showDownloadConsent(context);
@ -122,7 +122,7 @@ class HomeViewModel extends BaseViewModel {
locator<NavigationViewModel>().setIndex(1);
}
void _getPatchedApps() {
void getPatchedApps() {
patchedInstalledApps = _managerAPI.getPatchedApps().toList();
notifyListeners();
}