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

Commit c02efe24 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 12594757 from c444e086 to 25Q1-release

Change-Id: Icde3f42473b2abe34fbbc697b8463b126433dd96
parents 85114c75 c444e086
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -95,8 +95,11 @@ public class PreBootReceiver extends BroadcastReceiver {
        if (resId != 0) {
            final ComponentName component = new ComponentName(packageName, className);
            boolean enabled = overlayRes.getBoolean(resId);
            if (VersionUtils.isAtLeastS() && CONFIG_IS_LAUNCHER_ENABLED.equals(config)) {
                enabled = false; // Do not allow LauncherActivity to be enabled for S+.
            if (VersionUtils.isAtLeastS() && !pm.hasSystemFeature(PackageManager.FEATURE_PC)
                    && CONFIG_IS_LAUNCHER_ENABLED.equals(config)) {
                // Devices using S+ that don't support the `FEATURE_PC` system feature should not
                // show Files in the launcher.
                enabled = false;
            }
            if (DEBUG) {
                Log.i(TAG,