commit | 124fc6f58341027b4799403ce951c3fcc6a670fb | [log] [tgz] |
---|---|---|
author | Avinash Malipatil <avinashmp@google.com> | Mon Aug 28 10:13:06 2023 +0000 |
committer | Avinash Malipatil <avinashmp@google.com> | Mon Aug 28 10:13:06 2023 +0000 |
tree | eae51dfc658553a2ca0232d64aa6ed5d2b0a5bcf | |
parent | d6f55af0b18fde24e59bfdc6726313223ddb8281 [diff] |
Release resources and remove listeners when destroy is called. Bug: 279370848 Test: atest NormalCallDomainSelectorTest Change-Id: I7dc9b3a585a610c8e8cf47d0461eb7a2b0300400
diff --git a/src/com/android/services/telephony/domainselection/NormalCallDomainSelector.java b/src/com/android/services/telephony/domainselection/NormalCallDomainSelector.java index 70ad38e..32c05fa 100644 --- a/src/com/android/services/telephony/domainselection/NormalCallDomainSelector.java +++ b/src/com/android/services/telephony/domainselection/NormalCallDomainSelector.java
@@ -118,6 +118,12 @@ mTransportSelectorCallback = null; } + @Override + public void destroy() { + finishSelection(); + super.destroy(); + } + /** * Cancel an ongoing selection operation. It is up to the DomainSelectionService * to clean up all ongoing operations with the framework.