From 036b140b39e3355745a067de15df1b85f7cd6795 Mon Sep 17 00:00:00 2001 From: Jimmy Chen Date: Thu, 18 Jul 2019 10:25:26 +0800 Subject: [PATCH] p2p: update documents about EXTRA_WIFI_P2P_GROUP in connection changed event This value may be a null, receiver should check before using variable. Bug: 137618950 Test: make docs Change-Id: If466dac092fc345482d0456f08a915d1e7ba0010 --- wifi/java/android/net/wifi/p2p/WifiP2pManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wifi/java/android/net/wifi/p2p/WifiP2pManager.java b/wifi/java/android/net/wifi/p2p/WifiP2pManager.java index cd659e2a934aa..d37c4a2e78dbc 100644 --- a/wifi/java/android/net/wifi/p2p/WifiP2pManager.java +++ b/wifi/java/android/net/wifi/p2p/WifiP2pManager.java @@ -190,7 +190,7 @@ public class WifiP2pManager { * has changed. One extra {@link #EXTRA_WIFI_P2P_INFO} provides the p2p connection info in * the form of a {@link WifiP2pInfo} object. Another extra {@link #EXTRA_NETWORK_INFO} provides * the network info in the form of a {@link android.net.NetworkInfo}. A third extra provides - * the details of the group. + * the details of the group and may contain a {@code null}. * * All of these permissions are required to receive this broadcast: * {@link android.Manifest.permission#ACCESS_FINE_LOCATION} and