Suppress not registered error for now

See also: b/160765229
This commit is contained in:
Mygod
2020-07-11 06:39:55 +08:00
parent 339871f4b0
commit f7ed0c2387

View File

@@ -577,7 +577,12 @@ object TetheringManager {
@RequiresApi(30)
fun unregisterTetheringEventCallback(callback: TetheringEventCallback) {
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
}
}
/**