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

Commit 023bac15 authored by Adam Bookatz's avatar Adam Bookatz Committed by Android (Google) Code Review
Browse files

Merge "Don't disable isHomeLaunchDelayable on HSUM" into main

parents 06249878 6f65c3af
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -5415,14 +5415,12 @@ public class ActivityManagerService extends IActivityManager.Stub
        }
    }
    /**
     * Checks if feature flag is enabled and if system is Headless (HSUM), case in which 
     * home delay should be skipped.
     *
     * @hide
     */
    public boolean isHomeLaunchDelayable() {
        return !UserManager.isHeadlessSystemUserMode() && enableHomeDelay();
    /** Checks whether the home launch delay feature is enabled. */
    private boolean isHomeLaunchDelayable() {
        // This feature is disabled on Auto since it seems to add an unacceptably long boot delay
        // without even solving the underlying issue (it merely hits the timeout).
        return enableHomeDelay() &&
                !mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE);
    }
    final void ensureBootCompleted() {