OSDN Git Service

Add a feature flag for new version of Network and internet settings page
authorAntony Sargent <asargent@google.com>
Mon, 29 Oct 2018 21:59:15 +0000 (14:59 -0700)
committerAntony Sargent <asargent@google.com>
Wed, 31 Oct 2018 05:29:34 +0000 (05:29 +0000)
commit2cbd720d215c5c241d65dc585e88b4a7c656957b
treef8f891bc128235c07b5d2e461169b8295ea4288b
parent76da1123e4d46cbe23ee2e2c5988bf63ea326710
Add a feature flag for new version of Network and internet settings page

In addition to adding the flag, this also adds a new xml layout that is
the same as the existing network and internet page, but will begin to be
changed in subsequent CLs. There is also a change in code to use this
new layout when the flag is turned on.

One other change is to make the list of displayed feature flags in
developer options be in sorted order instead of whatever semirandom
order they come out of the map's key set.

Bug: 116349402
Test: Manual (settings_network_and_internet_v2 flag should should up in
Settings -> System -> Developer options -> Feature flags, and those
flags should be in sorted order)

Change-Id: I5520d286efb6bec50ba4ca99f64aeca94f01d533
res/xml/network_and_internet_v2.xml [new file with mode: 0644]
src/com/android/settings/core/FeatureFlags.java
src/com/android/settings/development/featureflags/FeatureFlagsPreferenceController.java
src/com/android/settings/network/NetworkDashboardFragment.java