From 213fe8193f7275d5458c5547c26b48700a3eb534 Mon Sep 17 00:00:00 2001 From: tornaco Date: Sun, 9 Jul 2023 15:23:00 +0800 Subject: [PATCH] [app] call new api: addToPackageSet --- .../tornaco/android/thanos/power/SmartFreezeAppsViewModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {