SetupWizard: Disable mobile data at least once

* Right now, the user has to set the toggle on and off to actually get
  the setting set to "off", since the underlying default value is "on"
* Make sure to send an "off" initially right at the beginning of SuW

Change-Id: Iec2fd05ea341351f3e6d4b195a1a385f9d88d4f7
(cherry picked from commit 29e77749c5)
This commit is contained in:
Michael W
2021-03-17 22:47:01 +01:00
committed by Dhina17
parent 4050f8e233
commit c5f841dd0d

View File

@@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2013 The CyanogenMod Project * Copyright (C) 2013 The CyanogenMod Project
* Copyright (C) 2017-2019 The LineageOS Project * Copyright (C) 2017-2021 The LineageOS Project
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -93,6 +93,7 @@ public class SetupWizardApp extends Application {
NetworkMonitor.initInstance(this); NetworkMonitor.initInstance(this);
PhoneMonitor.initInstance(this); PhoneMonitor.initInstance(this);
SetupWizardUtils.disableComponentsForMissingFeatures(this); SetupWizardUtils.disableComponentsForMissingFeatures(this);
SetupWizardUtils.setMobileDataEnabled(this, false);
mHandler.postDelayed(mRadioTimeoutRunnable, SetupWizardApp.RADIO_READY_TIMEOUT); mHandler.postDelayed(mRadioTimeoutRunnable, SetupWizardApp.RADIO_READY_TIMEOUT);
} }