[Wi-Fi] Implement getDialogMetricsCategory in WifiSettings2
It's necessary to implement getDialogMetricsCategory to show dialog in WifiSettings2. Bug: 143328194 Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wifi Change-Id: I65ac4168ef922be981624e7916316f189ab590c2
This commit is contained in:
@@ -582,6 +582,16 @@ public class WifiSettings2 extends RestrictedSettingsFragment
|
||||
mDialogWifiEntryKey = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDialogMetricsCategory(int dialogId) {
|
||||
switch (dialogId) {
|
||||
case WIFI_DIALOG_ID:
|
||||
return SettingsEnums.DIALOG_WIFI_AP_EDIT;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/** Called when the state of Wifi has changed. */
|
||||
@Override
|
||||
public void onWifiStateChanged() {
|
||||
|
Reference in New Issue
Block a user