Added WifiSettings -> WifiSettings2 redirection behind feature flag

Use WifiSettings2 if settings_wifitracker2 feature flag is enabled.
WifiSettings2 will be used for changes to WifiSettings to incorporate
the WifiTracker2 refactor.

Bug: 70983952
Test: make, set feature flag, open Wifi settings to verify new page
opens.

Change-Id: I08edc227bf38ab4b3b785180bf123815bf95da81
This commit is contained in:
Quang Luong
2019-06-24 14:47:55 -07:00
parent b1625b3158
commit b470e725c9
6 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.settings.wifi;
import static android.os.UserManager.DISALLOW_CONFIG_WIFI;
import android.app.settings.SettingsEnums;
import com.android.settings.RestrictedSettingsFragment;
public class WifiSettings2 extends RestrictedSettingsFragment {
public WifiSettings2() {
super(DISALLOW_CONFIG_WIFI);
}
@Override
public int getMetricsCategory() {
return SettingsEnums.WIFI;
}
}