fix: Fix unfixed fixes which needed to be fixed (better now??)

This commit is contained in:
Alberto Ponces
2022-09-20 01:07:36 +01:00
parent 07407933d9
commit 6f72c2ebec
3 changed files with 20 additions and 14 deletions

View File

@ -43,9 +43,10 @@ class AppSelectorViewModel extends BaseViewModel {
);
if (result != null && result.files.single.path != null) {
File apkFile = File(result.files.single.path!);
ApplicationWithIcon? application =
await DeviceApps.getAppFromStorage(apkFile.path, true)
as ApplicationWithIcon?;
ApplicationWithIcon? application = await DeviceApps.getAppFromStorage(
apkFile.path,
true,
) as ApplicationWithIcon?;
if (application != null) {
locator<PatcherViewModel>().selectedApp = PatchedApplication(
name: application.appName,