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

Commit 27ca2a9a authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make sure to call SingleThreadedBackgroundWriter#onUserCreated() again" into main

parents 67211026 e1f73329
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -219,6 +219,11 @@ final class AdditionalSubtypeMapRepository {
        sWriter.startThread();
    }

    @AnyThread
    static void onUserCreated(@UserIdInt int userId) {
        sWriter.onUserCreated(userId);
    }

    @AnyThread
    static void remove(@UserIdInt int userId, @NonNull Handler ioHandler) {
        sWriter.onUserRemoved(userId);
+3 −1
Original line number Diff line number Diff line
@@ -1012,7 +1012,9 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
        @Override
        public void onUserCreated(UserInfo user, @Nullable Object token) {
            // Called directly from UserManagerService. Do not block the calling thread.
            initializeUsersAsync(new int[user.id]);
            final int userId = user.id;
            AdditionalSubtypeMapRepository.onUserCreated(userId);
            initializeUsersAsync(new int[userId]);
        }

        @Override