Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29e77749 authored by Michael W's avatar Michael W Committed by Michael Bestas
Browse files

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
parent bc224d57
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (C) 2013 The CyanogenMod Project
 * Copyright (C) 2017-2020 The LineageOS Project
 * Copyright (C) 2017-2021 The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -94,6 +94,7 @@ public class SetupWizardApp extends Application {
        NetworkMonitor.initInstance(this);
        PhoneMonitor.initInstance(this);
        SetupWizardUtils.disableComponentsForMissingFeatures(this);
        SetupWizardUtils.setMobileDataEnabled(this, false);
        mHandler.postDelayed(mRadioTimeoutRunnable, SetupWizardApp.RADIO_READY_TIMEOUT);
    }