Log visibility change for DialogCreatable in Settings.
Bug: 30681529 Test: adb logcat -b events | egrep "(sysui_|notification_)" Test: make RunSettingsRoboTests Change-Id: I51754d258ba1ddfae24323681f21cd02de4dbb4e
This commit is contained in:
@@ -495,6 +495,21 @@ public class WifiP2pSettings extends SettingsPreferenceFragment
|
||||
return MetricsEvent.WIFI_P2P;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDialogMetricsCategory(int dialogId) {
|
||||
switch (dialogId) {
|
||||
case DIALOG_DISCONNECT:
|
||||
return MetricsEvent.DIALOG_WIFI_P2P_DISCONNECT;
|
||||
case DIALOG_CANCEL_CONNECT:
|
||||
return MetricsEvent.DIALOG_WIFI_P2P_CANCEL_CONNECT;
|
||||
case DIALOG_RENAME:
|
||||
return MetricsEvent.DIALOG_WIFI_P2P_RENAME;
|
||||
case DIALOG_DELETE_GROUP:
|
||||
return MetricsEvent.DIALOG_WIFI_P2P_DELETE_GROUP;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSaveInstanceState(Bundle outState) {
|
||||
if (mSelectedWifiPeer != null) {
|
||||
|
Reference in New Issue
Block a user