[Launcher/Archive] remove all checks for the archiving system property
No longer needed Change-Id: I62c8843aa04a245d1dcc30f7787c71d17993f5d1 BUG: 331165939 Test: builds
This commit is contained in:
@@ -29,6 +29,7 @@ import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.WorkerThread;
|
||||
|
||||
import com.android.launcher3.Flags;
|
||||
import com.android.launcher3.LauncherPrefs;
|
||||
import com.android.launcher3.SessionCommitReceiver;
|
||||
import com.android.launcher3.Utilities;
|
||||
@@ -217,7 +218,7 @@ public class InstallSessionHelper {
|
||||
&& !promiseIconAddedForId(sessionInfo.getSessionId())) {
|
||||
// In case of unarchival, we do not want to add a workspace promise icon if one is
|
||||
// not already present. For general app installations however, we do support it.
|
||||
if (!Utilities.enableSupportForArchiving() || !sessionInfo.isUnarchival()) {
|
||||
if (!Flags.enableSupportForArchiving() || !sessionInfo.isUnarchival()) {
|
||||
FileLog.d(LOG, "Adding package name to install queue: "
|
||||
+ sessionInfo.getAppPackageName());
|
||||
|
||||
@@ -232,7 +233,7 @@ public class InstallSessionHelper {
|
||||
|
||||
public boolean verifySessionInfo(@Nullable final PackageInstaller.SessionInfo sessionInfo) {
|
||||
// For archived apps we always want to show promise icons and the checks below don't apply.
|
||||
if (Utilities.enableSupportForArchiving() && sessionInfo != null
|
||||
if (Flags.enableSupportForArchiving() && sessionInfo != null
|
||||
&& sessionInfo.isUnarchival()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user