Migrate from using deprecated getLastTetherError

This commit is contained in:
Mygod
2021-04-12 23:43:05 -04:00
parent d764c1d331
commit 0ac5b25f85
4 changed files with 23 additions and 9 deletions

View File

@@ -629,6 +629,7 @@ object TetheringManager {
* @return error The error code of the last error tethering or untethering the named
* interface
*/
@Deprecated("Use {@link TetheringEventCallback#onError(String, int)} instead.")
fun getLastTetherError(iface: String): Int = getLastTetherError(Services.connectivity, iface) as Int
val tetherErrorLookup = ConstantLookup("TETHER_ERROR_",