SetupWizardUtils: Remove unused isMobileDataEnabled method
Last usage was before commit 334cd1b
.
Change-Id: Ic59a47a62bb439db5d7859ea136c3334ae5257fa
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2013 The CyanogenMod Project
|
* Copyright (C) 2013 The CyanogenMod Project
|
||||||
* Copyright (C) 2017-2021 The LineageOS Project
|
* 2017-2022 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.
|
||||||
@@ -84,15 +84,6 @@ public class SetupWizardUtils {
|
|||||||
return context.getSharedPreferences("SetupWizardPrefs", MODE_PRIVATE);
|
return context.getSharedPreferences("SetupWizardPrefs", MODE_PRIVATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isMobileDataEnabled(Context context) {
|
|
||||||
try {
|
|
||||||
TelephonyManager tm = context.getSystemService(TelephonyManager.class);
|
|
||||||
return tm.getDataEnabled();
|
|
||||||
} catch (Exception e) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void setMobileDataEnabled(Context context, boolean enabled) {
|
public static void setMobileDataEnabled(Context context, boolean enabled) {
|
||||||
TelephonyManager tm = context.getSystemService(TelephonyManager.class);
|
TelephonyManager tm = context.getSystemService(TelephonyManager.class);
|
||||||
if (tm.isMultiSimEnabled()) {
|
if (tm.isMultiSimEnabled()) {
|
||||||
|
Reference in New Issue
Block a user