Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 947dcf6e authored by Song Chun Fan's avatar Song Chun Fan Committed by Cherrypicker Worker
Browse files

[frameworks/Archive] remove all checks for the archiving system property

No longer needed

BUG: 331165939
Test: builds
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:092a8b60007480fec08d781d2d655cbe41a8f37b)
Merged-In: Ic5a5d772c60c13739580d9543df59a53401434e9
Change-Id: Ic5a5d772c60c13739580d9543df59a53401434e9
parent 47ad7f75
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -244,8 +244,7 @@ public class UninstallAlertDialogFragment extends DialogFragment implements
    }

    private static boolean isArchivingEnabled() {
        return android.content.pm.Flags.archiving()
                || SystemProperties.getBoolean("pm.archiving.enabled", false);
        return android.content.pm.Flags.archiving();
    }

    private boolean isCloneProfile(UserHandle userHandle) {
+1 −1
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ class AppListRepositoryImpl(
    }

    private fun isArchivingEnabled(featureFlags: FeatureFlags) =
            featureFlags.archiving() || SystemProperties.getBoolean("pm.archiving.enabled", false)
            featureFlags.archiving()

    override fun showSystemPredicate(
        userIdFlow: Flow<Int>,
+1 −1
Original line number Diff line number Diff line
@@ -186,7 +186,7 @@ public class PackageArchiver {
    }

    public static boolean isArchivingEnabled() {
        return Flags.archiving() || SystemProperties.getBoolean("pm.archiving.enabled", false);
        return Flags.archiving();
    }

    @VisibleForTesting