mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-11 13:46:17 +00:00
fix: Make sure we are getting app from from storage when selection is from storage
This commit is contained in:
@@ -42,7 +42,12 @@ class PatcherViewModel extends BaseViewModel {
|
||||
bool needsResourcePatching =
|
||||
await _patcherAPI.needsResourcePatching(selectedPatches);
|
||||
if (needsResourcePatching && selectedApp != null) {
|
||||
Application? app = await DeviceApps.getApp(selectedApp!.packageName);
|
||||
Application? app;
|
||||
if (selectedApp!.isFromStorage) {
|
||||
app = await DeviceApps.getAppFromStorage(selectedApp!.apkFilePath);
|
||||
} else {
|
||||
app = await DeviceApps.getApp(selectedApp!.packageName);
|
||||
}
|
||||
if (app != null && app.isSplit) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user