Refine feature listing

This commit is contained in:
Mygod
2023-03-09 18:31:36 -05:00
parent 912e02f3f5
commit d1cee5cb0b

View File

@@ -209,7 +209,7 @@ sealed class TetherManager(protected val parent: TetheringFragment) : Manager(),
} }
if (features != 0L) while (features != 0L) { if (features != 0L) while (features != 0L) {
val bit = features.takeLowestOneBit() val bit = features.takeLowestOneBit()
yield(SoftApCapability.featureLookup(bit, true)) yield(SoftApCapability.featureLookup(bit, true).replace('_', ' '))
features = features and bit.inv() features = features and bit.inv()
} }
}.joinToSpanned().ifEmpty { parent.getText(R.string.tethering_manage_wifi_no_features) }) }.joinToSpanned().ifEmpty { parent.getText(R.string.tethering_manage_wifi_no_features) })