Skip to content

Commit

Permalink
Merge "Revert "Offload role manager work to background thread"" into …
Browse files Browse the repository at this point in the history
…qt-dev
  • Loading branch information
TreeHugger Robot authored and Android (Google) Code Review committed Jun 3, 2019
2 parents 575f58e + c00c31e commit b13d88a
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
import com.android.internal.util.Preconditions;
import com.android.server.FgThread;
import com.android.server.LocalServices;
import com.android.server.SystemServerInitThreadPool;
import com.android.server.SystemService;
import com.android.server.UiThread;
import com.android.server.soundtrigger.SoundTriggerInternal;
Expand Down Expand Up @@ -1284,9 +1283,7 @@ class RoleObserver implements OnRoleHoldersChangedListener {
mRm.addOnRoleHoldersChangedListenerAsUser(executor, this, UserHandle.ALL);
UserHandle currentUser = UserHandle.of(LocalServices.getService(
ActivityManagerInternal.class).getCurrentUserId());
SystemServerInitThreadPool.get().submit(() -> onRoleHoldersChanged(
RoleManager.ROLE_ASSISTANT, currentUser),
"VoiceInteractionManagerService RoleObserver initialization");
onRoleHoldersChanged(RoleManager.ROLE_ASSISTANT, currentUser);
}

private @NonNull String getDefaultRecognizer(@NonNull UserHandle user) {
Expand Down

0 comments on commit b13d88a

Please sign in to comment.