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:
@@ -224,6 +224,12 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
public void onCreate(Bundle icicle) {
|
||||
super.onCreate(icicle);
|
||||
|
||||
if (FeatureFlagUtils.isEnabled(getContext(), FeatureFlagUtils.SETTINGS_WIFITRACKER2)) {
|
||||
getContext().startActivity(new Intent("android.settings.WIFI_SETTINGS2"));
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO(b/37429702): Add animations and preference comparator back after initial screen is
|
||||
// loaded (ODR).
|
||||
setAnimationAllowed(false);
|
||||
|
Reference in New Issue
Block a user