Merge "Fix callbacks not being unregistered from ProxyDispatcher" into tm-dev
This commit is contained in:
@@ -81,6 +81,10 @@ public class ProxyOnBackInvokedDispatcher implements OnBackInvokedDispatcher {
|
||||
}
|
||||
synchronized (mLock) {
|
||||
mCallbacks.removeIf((p) -> p.first.equals(callback));
|
||||
if (mActualDispatcherOwner != null) {
|
||||
mActualDispatcherOwner.getOnBackInvokedDispatcher().unregisterOnBackInvokedCallback(
|
||||
callback);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user