Properly support NCM tethering type on Pixel 6+

Fixes #413.
This commit is contained in:
Mygod
2022-12-15 18:39:53 -05:00
parent 1783cba6fb
commit acc4b1eb47
8 changed files with 9 additions and 51 deletions

View File

@@ -28,6 +28,8 @@ enum class TetherType(@DrawableRes val icon: Int) {
else -> false
}
fun isA(other: TetherType) = this == other || other == USB && this == NCM
companion object : TetheringManager.TetheringEventCallback {
private lateinit var usbRegexs: List<Pattern>
private lateinit var wifiRegexs: List<Pattern>

View File

@@ -151,13 +151,6 @@ object TetheringManager {
*/
@RequiresApi(24)
const val TETHERING_BLUETOOTH = 2
/**
* Ncm local tethering type.
*
* @see startTethering
*/
@RequiresApi(30)
const val TETHERING_NCM = 4
/**
* Ethernet tethering type.
*