diff --git a/android/app/src/main/java/github/tornaco/android/thanos/power/SmartFreezeAppsViewModel.java b/android/app/src/main/java/github/tornaco/android/thanos/power/SmartFreezeAppsViewModel.java index d2a70958e..f9bbd5e39 100644 --- a/android/app/src/main/java/github/tornaco/android/thanos/power/SmartFreezeAppsViewModel.java +++ b/android/app/src/main/java/github/tornaco/android/thanos/power/SmartFreezeAppsViewModel.java @@ -271,7 +271,7 @@ public void addToSmartFreezeList(List appInfos, boolean alsoAddToPkgSet onProgress.accept(appInfo); thanosManager.getPkgManager().setPkgSmartFreezeEnabled(Pkg.fromAppInfo(appInfo), true); if (alsoAddToPkgSet && packageSet != null && !packageSet.isPrebuilt()) { - thanosManager.getPkgManager().addToPackageSet(appInfo.getPkgName(), pkgSetId); + thanosManager.getPkgManager().addToPackageSet(Pkg.fromAppInfo(appInfo), pkgSetId); } // Give system a rest try {