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

Unverified Commit 9cda28fe authored by LuK1337's avatar LuK1337 Committed by Michael Bestas
Browse files

PhoneSwitcher: Skip state check guard for HAL_COMMAND_ALLOW_DATA users

Test: On nile, set data sim to slot#2 and reboot, notice that data works
      on every boot.
Change-Id: I0015489779fa7e29487f24546638605f57d90661
parent 247aa71b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1272,7 +1272,7 @@ public class PhoneSwitcher extends Handler {

    private void switchPhone(int phoneId, boolean active) {
        PhoneState state = mPhoneStates[phoneId];
        if (state.active == active) return;
        if (mHalCommandToUse != HAL_COMMAND_ALLOW_DATA && state.active == active) return;
        state.active = active;
        logl((active ? "activate " : "deactivate ") + phoneId);
        state.lastRequested = System.currentTimeMillis();