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

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

Merge "Remove user-unlocked listener in ODI manager service." into main

parents 1a12d316 86794df5
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -194,20 +194,6 @@ public class OnDeviceIntelligenceManagerService extends SystemService {
        }
    }

    @Override
    public void onUserUnlocked(@NonNull TargetUser user) {
        Slog.d(TAG, "onUserUnlocked: " + user.getUserHandle());
        //connect to remote services(if available) during boot.
        if (user.getUserHandle().equals(UserHandle.SYSTEM)) {
            try {
                ensureRemoteInferenceServiceInitialized(/* throwServiceIfInvalid */ false);
                ensureRemoteIntelligenceServiceInitialized(/* throwServiceIfInvalid */ false);
            } catch (Exception e) {
                Slog.w(TAG, "Couldn't pre-start remote ondeviceintelligence services.", e);
            }
        }
    }

    private void onDeviceConfigChange(@NonNull Set<String> keys) {
        if (keys.contains(KEY_SERVICE_ENABLED)) {
            mIsServiceEnabled = isServiceEnabled();