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

Commit 3e39b04e authored by Jacqueline Bronger's avatar Jacqueline Bronger
Browse files

Don't wait for ThemeOverlayController during boot.

TV does not include the ThemeOverlayController at this time.

Bug: 322788694
Test: manual - check that device boots normally
Flag: EXEMPT bugfix
Change-Id: I3564922a84d2cf01e81c6a3fd357e124a46be0f9
parent 24d0f2f7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -5458,8 +5458,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() {