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

Commit 71eeb811 authored by William Escande's avatar William Escande
Browse files

Revert "Unregister callback on unregisterAppUid."

This reverts commit 13a2de0b.

Reason for revert: Breaking api contract as we are not sending the callback of registration to the user

Change-Id: I9693f3156c1598b0dd28e3313ae37b31f2efc127
Bug: 263323082
parent 13a2de0b
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);
    }
}