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

Commit 4e308b23 authored by Lingkai Dong's avatar Lingkai Dong
Browse files

Fix WindowManager boot timeout on emulators

Like many other timeouts across frameworks/base/, the WindowManager
boot timeout should be multiplied to Build.HW_TIMEOUT_MULTIPLIER
which comes from ro.hw_timeout_multiplier whose default is 1 on real
hardware.

Change-Id: I7d9827e71ae74c2c145ffaa921127c5b0aa27bfd
parent 9a76dedd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3672,7 +3672,7 @@ public class WindowManagerService extends IWindowManager.Stub
            hideBootMessagesLocked();
            // If the screen still doesn't come up after 30 seconds, give
            // up and turn it on.
            mH.sendEmptyMessageDelayed(H.BOOT_TIMEOUT, 30 * 1000);
            mH.sendEmptyMessageDelayed(H.BOOT_TIMEOUT, 30 * 1000 * Build.HW_TIMEOUT_MULTIPLIER);
        }

        mPolicy.systemBooted();