Handle deprecation of WIFI_MODE_FULL_HIGH_PERF

This commit is contained in:
Mygod
2023-06-08 19:39:41 -04:00
parent 29dd69e035
commit 0b87e1461f
2 changed files with 4 additions and 0 deletions

View File

@@ -94,6 +94,9 @@ Default settings are picked to suit general use cases and maximize compatibility
An example use case is when a voice connection needs to be kept active even after the device screen goes off.
Using this mode may improve the call quality.
Requires support from the hardware.
Deprecated in Android 14 and is automatically replaced with "Low latency mode".
Deprecation is due to the impact of it on power dissipation.
The "Low latency mode" provides much of the same desired functionality with less impact on power dissipation.
- (since Android 10) Choose "Low latency mode" to optimize for reduced packet latency, and this might result in:
1. Reduced battery life.
2. Reduced throughput.

View File

@@ -64,6 +64,7 @@ class WifiDoubleLock(lockType: Int) : AutoCloseable {
@Deprecated("This constant was deprecated in API level Q.\n" +
"This API is non-functional and will have no impact.")
Full(WifiManager.WIFI_MODE_FULL),
@Suppress("DEPRECATION")
HighPerf(WifiManager.WIFI_MODE_FULL_HIGH_PERF),
@RequiresApi(29)
LowLatency(WifiManager.WIFI_MODE_FULL_LOW_LATENCY, true),