Consolidate PhoneMonitor into SetupWizardUtils
Moved and refactored missingSim and its helper functions into SetupWizardUtils, making them static. This was the only part of PhoneMonitor that was used anymore. Change-Id: I220e82e83bdb301206c4286b562f69c223de56e2
This commit is contained in:
committed by
Michael Bestas
parent
51fde0aa49
commit
83338c4ae6
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2013 The CyanogenMod Project
|
||||
* Copyright (C) 2017-2022 The LineageOS Project
|
||||
* Copyright (C) 2017-2024 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.
|
||||
@@ -24,7 +24,6 @@ import android.os.Handler;
|
||||
import android.util.Log;
|
||||
|
||||
import org.lineageos.setupwizard.util.NetworkMonitor;
|
||||
import org.lineageos.setupwizard.util.PhoneMonitor;
|
||||
import org.lineageos.setupwizard.util.SetupWizardUtils;
|
||||
|
||||
public class SetupWizardApp extends Application {
|
||||
@@ -92,7 +91,6 @@ public class SetupWizardApp extends Application {
|
||||
Log.v(TAG, "onCreate()");
|
||||
}
|
||||
NetworkMonitor.initInstance(this);
|
||||
PhoneMonitor.initInstance(this);
|
||||
SetupWizardUtils.disableComponentsForMissingFeatures(this);
|
||||
if (SetupWizardUtils.isOwner()) {
|
||||
SetupWizardUtils.setMobileDataEnabled(this, false);
|
||||
|
Reference in New Issue
Block a user