Revert "Suppress not registered error for now"
This reverts commit f7ed0c2387.
This commit is contained in:
@@ -577,12 +577,7 @@ object TetheringManager {
|
||||
@RequiresApi(30)
|
||||
fun unregisterTetheringEventCallback(callback: TetheringEventCallback) {
|
||||
val proxy = synchronized(callbackMap) { callbackMap.remove(callback) } ?: return
|
||||
try {
|
||||
unregisterTetheringEventCallback(instance, proxy)
|
||||
} catch (e: InvocationTargetException) {
|
||||
if (e.targetException !is IllegalArgumentException) throw e
|
||||
Timber.e(e) // TODO: b/160765229
|
||||
}
|
||||
unregisterTetheringEventCallback(instance, proxy)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user