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

Commit ae2f4fc9 authored by Sandeep Bandaru's avatar Sandeep Bandaru Committed by Android (Google) Code Review
Browse files

Merge "Add onBindingDied callback for service connection." into main

parents 4867ecd6 f5d2d146
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -635,6 +635,14 @@ public interface ServiceConnector<I extends IInterface> {
            unbind();
        }

        @Override
        public void onBindingDied(@NonNull ComponentName name) {
            if (DEBUG) {
                logTrace();
            }
            unbind();
        }

        protected void dispatchOnBinderDied() {
            ServiceLifecycleCallbacks<I> serviceLifecycleCallbacks = mServiceLifecycleCallbacks;
            if (serviceLifecycleCallbacks != null) {