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

Commit 6fa985a0 authored by Jacqueline Bronger's avatar Jacqueline Bronger Committed by Android (Google) Code Review
Browse files

Merge "Don't wait for ThemeOverlayController during boot." into main

parents 0270757a 3e39b04e
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -5481,8 +5481,11 @@ public class ActivityManagerService extends IActivityManager.Stub
    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);
        // This feature is disabled on TV since the ThemeOverlayController is currently not present
        // and therefore we do not want to wait unnecessarily.
        return enableHomeDelay()
                && !mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)
                && !mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LEANBACK);
    }
    final void ensureBootCompleted() {