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

Commit edcfbb25 authored by William Escande's avatar William Escande Committed by Gerrit Code Review
Browse files

Merge "Revert "Unregister callback on unregisterAppUid.""

parents 13fd81f0 febf37ca
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -620,7 +620,6 @@ public class HidDeviceService extends ProfileService {

        if (mUserUid != 0 && (uid == mUserUid || uid < Process.FIRST_APPLICATION_UID)) {
            mUserUid = 0;
            mCallback = null;
            return mHidDeviceNativeInterface.unregisterApp();
        }
        if (DBG) {
+1 −5
Original line number Diff line number Diff line
@@ -528,10 +528,6 @@ public class HidDeviceTest {
        verify(mHidDeviceNativeInterface).unregisterApp();

        mHidDeviceService.onApplicationStateChangedFromNative(mTestDevice, false);
        Assert.assertThrows(
                AssertionError.class,
                () -> verifyCallback(TIMEOUT_MS, CALLBACK_APP_UNREGISTERED, mCallbackQueue)
        );

        verifyCallback(TIMEOUT_MS, CALLBACK_APP_UNREGISTERED, mCallbackQueue);
    }
}