Add action metrics for Wi-Fi provision features
// ACTION: Share a Wi-Fi network by generating a QR code ACTION_SETTINGS_SHARE_WIFI_QR_CODE // ACTION: Connect to a Wi-Fi network by scanning a QR code ACTION_SETTINGS_ENROLL_WIFI_QR_CODE // ACTION: Share Wi-Fi hotspot by generating a QR code ACTION_SETTINGS_SHARE_WIFI_HOTSPOT_QR_CODE Bug: 130521826 Test: manual Change-Id: I4204307dd5318eb7c47e4136dc7d8700d43e4da1
This commit is contained in:
@@ -889,13 +889,19 @@ public class WifiDetailPreferenceController extends AbstractPreferenceController
|
||||
/**
|
||||
* Show QR code to share the network represented by this preference.
|
||||
*/
|
||||
public void launchWifiDppConfiguratorActivity() {
|
||||
private void launchWifiDppConfiguratorActivity() {
|
||||
final Intent intent = WifiDppUtils.getConfiguratorQrCodeGeneratorIntentOrNull(mContext,
|
||||
mWifiManager, mAccessPoint);
|
||||
|
||||
if (intent == null) {
|
||||
Log.e(TAG, "Launch Wi-Fi DPP QR code generator with a wrong Wi-Fi network!");
|
||||
} else {
|
||||
mMetricsFeatureProvider.action(SettingsEnums.PAGE_UNKNOWN,
|
||||
SettingsEnums.ACTION_SETTINGS_SHARE_WIFI_QR_CODE,
|
||||
SettingsEnums.SETTINGS_WIFI_DPP_CONFIGURATOR,
|
||||
/* key */ null,
|
||||
/* value */ Integer.MIN_VALUE);
|
||||
|
||||
mContext.startActivity(intent);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user