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