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

Commit 2d89ca9c authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5746716 from 1c74123a to qt-c2f2-release

Change-Id: I984378b656b14b22a229ec60c09e1b8b31496804
parents 0e2e720d 1c74123a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -459,16 +459,20 @@ void AudioPolicyService::updateUidStates_l()
            continue;
        }

        bool isAssistant = mUidPolicy->isAssistantUid(current->uid);
        if (appState == APP_STATE_TOP) {
            if (current->startTimeNs > topStartNs) {
                topActive = current;
                topStartNs = current->startTimeNs;
            }
            if (mUidPolicy->isAssistantUid(current->uid)) {
            if (isAssistant) {
                isAssistantOnTop = true;
            }
        }
        if (current->startTimeNs > latestStartNs) {
        // Assistant capturing for HOTWORD not considered for latest active to avoid
        // masking regular clients started before
        if (current->startTimeNs > latestStartNs &&
            !(current->attributes.source == AUDIO_SOURCE_HOTWORD && isAssistant)) {
            latestActive = current;
            latestStartNs = current->startTimeNs;
        }