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

Commit ffc8f650 authored by Michael Wright's avatar Michael Wright Committed by android-build-merger
Browse files

Merge "Change the thread for handling shutdown of PowerManagerService." into oc-dev am: 614636e9

am: 1a66f776

Change-Id: I9484e5763bf02e2236e40c538f0486288c3e45a4
parents 1a58d2b9 1a66f776
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ import com.android.server.LockGuard;
import com.android.server.RescueParty;
import com.android.server.ServiceThread;
import com.android.server.SystemService;
import com.android.server.UiThread;
import com.android.server.Watchdog;
import com.android.server.am.BatteryStatsService;
import com.android.server.lights.Light;
@@ -2732,9 +2733,9 @@ public final class PowerManagerService extends SystemService
        };

        // ShutdownThread must run on a looper capable of displaying the UI.
        Message msg = Message.obtain(mHandler, runnable);
        Message msg = Message.obtain(UiThread.getHandler(), runnable);
        msg.setAsynchronous(true);
        mHandler.sendMessage(msg);
        UiThread.getHandler().sendMessage(msg);

        // PowerManager.reboot() is documented not to return so just wait for the inevitable.
        if (wait) {