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

Commit d1ba3357 authored by Tim Yu's avatar Tim Yu
Browse files

Autofill: refactor out lint warning

Change-Id: I9a8fa6697d6dfecb5011b6d1c14b711ad9932923
Fixes: 296082993
Test: na, refactor only
Flag: EXEMPT refactor
parent 3ffe8d98
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -423,27 +423,22 @@ public final class AutofillManagerService
    @Nullable
    private AutofillManagerServiceImpl getServiceForUserWithLocalBinderIdentityLocked(int userId) {
        final long token = Binder.clearCallingIdentity();
        AutofillManagerServiceImpl managerService = null;
        try {
            managerService = getServiceForUserLocked(userId);
            return getServiceForUserLocked(userId);
        } finally {
            Binder.restoreCallingIdentity(token);
        }
        return managerService;
    }

    @GuardedBy("mLock")
    @Nullable
    private AutofillManagerServiceImpl peekServiceForUserWithLocalBinderIdentityLocked(int userId) {
        final long token = Binder.clearCallingIdentity();
        AutofillManagerServiceImpl managerService = null;
        try {
            managerService = peekServiceForUserLocked(userId);
            return peekServiceForUserLocked(userId);
        } finally {
            Binder.restoreCallingIdentity(token);
        }

        return managerService;
    }

    @Override // from AbstractMasterSystemService