Add the archiving sysprop check to launcher3.
This system property will be used to test the feature in DVT. This is required because the new device is built on U QPR3, not V. See https://docs.google.com/document/d/1h8sLlnnhwGP4uZssglBqTShMoQcEq5dvR7jsJmmp0Cw/edit?resourcekey=0-KTFHkPKTdtMN-5kQYBWJig&tab=t.0#heading=h.x9snb54sjlu9 for more details. Test: tested manually Flag: ACONFIG com.android.launcher3.enable_support_for_archiving TEAMFOOD Change-Id: Ie64a40ba799c81057258dd7de3872a0494cff2d8
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
|
||||
package com.android.launcher3.pm;
|
||||
|
||||
import static com.android.launcher3.Flags.enableSupportForArchiving;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.LauncherApps;
|
||||
@@ -33,6 +31,7 @@ import androidx.annotation.WorkerThread;
|
||||
|
||||
import com.android.launcher3.LauncherPrefs;
|
||||
import com.android.launcher3.SessionCommitReceiver;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.logging.FileLog;
|
||||
import com.android.launcher3.model.ItemInstallQueue;
|
||||
import com.android.launcher3.util.IntArray;
|
||||
@@ -228,7 +227,8 @@ 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 (enableSupportForArchiving() && sessionInfo != null && sessionInfo.isUnarchival()) {
|
||||
if (Utilities.enableSupportForArchiving() && sessionInfo != null
|
||||
&& sessionInfo.isUnarchival()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user