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

Commit 56da76bf authored by Yixiao Luo's avatar Yixiao Luo
Browse files

Do not delay updating service connection if a hardware TIS service is reconnecting (follow up)

In removeSessionStateLocked(), run updateServiceConnectionLocked() immediately when serviceState of a hardware service is reconnecting.

Bug: 332201346
Test: verified by MTK
Flag: EXEMPT bugfix
Change-Id: Idc43beb7f8eaeeb2a16f42595a70d5b0f6379457
parent f3474e60
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1074,7 +1074,7 @@ public final class TvInputManagerService extends SystemService {
        if (serviceState != null) {
            serviceState.sessionTokens.remove(sessionToken);
        }
        if (!serviceState.isHardware) {
        if (!serviceState.isHardware || serviceState.reconnecting) {
            updateServiceConnectionLocked(sessionState.componentName, userId);
        } else {
            updateHardwareServiceConnectionDelayed(userId);