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

Commit d9f95738 authored by Alexandre Roux's avatar Alexandre Roux Committed by Abhishek Aggarwal
Browse files

SetupWizard: Enable wifi location



Change-Id: I256e9b008850200b60154c83f1e32e93de45a967
Signed-off-by: Aayush Gupta's avatarAayush Gupta <theimpulson@e.email>
parent 4962d952
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2016 The CyanogenMod Project
 * Copyright (C) 2017-2021 The LineageOS Project
 * Copyright (C) 2020-2021 E FOUNDATION
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -22,6 +23,7 @@ import android.os.Bundle;
import android.os.UserHandle;
import android.view.View;
import android.widget.CheckBox;
import android.provider.Settings;

public class LocationSettingsActivity extends BaseSetupWizardActivity {

@@ -45,6 +47,8 @@ public class LocationSettingsActivity extends BaseSetupWizardActivity {
                    new UserHandle(UserHandle.USER_CURRENT));
            mLocationAccess.setChecked(!mLocationAccess.isChecked());
        });
        Settings.Global.putInt(getContentResolver(),
                    Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE,1);
    }

    @Override