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

Commit 191149a4 authored by Samuel Fufa's avatar Samuel Fufa
Browse files

Clear registered prediction callbacks on destroy

destroy() removes callbacks from AppPredictionManagerService but not
from mRegisteredCallbacks.

Bug: 149388856
Test: manual
Change-Id: Id08d6b20362486bd1640310c64da35e0382d9b5e
parent 27f83cdb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -260,6 +260,7 @@ public final class AppPredictor {
                Log.e(TAG, "Failed to notify app target event", e);
                e.rethrowAsRuntimeException();
            }
            mRegisteredCallbacks.clear();
        } else {
            throw new IllegalStateException("This client has already been destroyed.");
        }