Skip to content

Commit f535f0a

Browse files
David SuAndroid (Google) Code Review
authored andcommitted
Merge "LINK_CONFIGURATION_CHANGED broadcast: stop including EXTRA_LINK_PROPERTIES" into rvc-qpr-dev
2 parents 4fc13f3 + cfb033e commit f535f0a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

wifi/java/android/net/wifi/WifiManager.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,8 +1054,8 @@ public class WifiManager {
10541054
/**
10551055
* Broadcast intent action indicating that the link configuration changed on wifi.
10561056
* <br />Included Extras:
1057-
* <br />{@link #EXTRA_LINK_PROPERTIES}: {@link android.net.LinkProperties} object associated
1058-
* with the Wi-Fi network.
1057+
* <br />{@link #EXTRA_LINK_PROPERTIES}: may not be set starting in Android 11. Check for
1058+
* <br /> null before reading its value.
10591059
* <br /> No permissions are required to listen to this broadcast.
10601060
* @hide
10611061
*/
@@ -1071,6 +1071,10 @@ public class WifiManager {
10711071
* Included in the {@link #ACTION_LINK_CONFIGURATION_CHANGED} broadcast.
10721072
*
10731073
* Retrieve with {@link android.content.Intent#getParcelableExtra(String)}.
1074+
*
1075+
* Note: this extra may not be set starting in Android 11. Check for null before reading its
1076+
* value.
1077+
*
10741078
* @hide
10751079
*/
10761080
@SystemApi

0 commit comments

Comments
 (0)