Update Adaptive connectivity page.

- Use MainSwitchPreference.
- Use the TopIntroPreference to display the summary.
- Use the IllustrationPreference to display the stastic
  illustration.
- Add new illustrations for adaptive connectivity.

Fix: 178673083
Test: robotest and test the switch preference manually
Change-Id: I2376f4433b61ce1d3da287de92660fbeea5dd64e
This commit is contained in:
Stanley Wang
2021-06-29 20:24:01 +08:00
parent 1a77fce131
commit e722fbe277
4 changed files with 196 additions and 14 deletions

View File

@@ -22,12 +22,14 @@ import android.provider.Settings;
import androidx.preference.PreferenceScreen;
import com.android.settings.core.TogglePreferenceController;
import com.android.settings.widget.SettingsMainSwitchPreferenceController;
/**
* {@link TogglePreferenceController} that controls whether Adaptive connectivity option is enabled.
* {@link SettingsMainSwitchPreferenceController}
* that controls whether Adaptive connectivity option is enabled.
*/
public class AdaptiveConnectivityTogglePreferenceController extends TogglePreferenceController {
public class AdaptiveConnectivityTogglePreferenceController extends
SettingsMainSwitchPreferenceController {
private final WifiManager mWifiManager;