fix: rename PatcherService to PatcherAPI.

This commit is contained in:
Alberto Ponces
2022-08-09 01:20:50 +01:00
parent 33fb2a81b5
commit 7c7a7e0355
6 changed files with 9 additions and 9 deletions

View File

@ -5,7 +5,7 @@ import 'package:revanced_manager/ui/views/patcher/patcher_viewmodel.dart';
import 'package:stacked/stacked.dart';
class AppSelectorViewModel extends BaseViewModel {
final PatcherService patcherService = locator<PatcherService>();
final PatcherAPI patcherAPI = locator<PatcherAPI>();
List<AppInfo> apps = [];
AppInfo? selectedApp;
@ -15,8 +15,8 @@ class AppSelectorViewModel extends BaseViewModel {
}
Future<void> getApps() async {
await patcherService.loadPatches();
apps = await patcherService.getFilteredInstalledApps();
await patcherAPI.loadPatches();
apps = await patcherAPI.getFilteredInstalledApps();
}
void selectApp(AppInfo appInfo) {