From 3873d4125685f47018fa53a09cb798997cd055fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C6=B0ng=20Phan?= Date: Mon, 25 Oct 2021 17:29:25 +0700 Subject: [PATCH] Cherish:Remove Utils MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hưng Phan --- src/com/cherish/settings/fragments/ButtonSettings.java | 6 ++---- src/com/cherish/settings/preferences/Utils.java | 6 ------ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/com/cherish/settings/fragments/ButtonSettings.java b/src/com/cherish/settings/fragments/ButtonSettings.java index 4597e46..3274ab5 100644 --- a/src/com/cherish/settings/fragments/ButtonSettings.java +++ b/src/com/cherish/settings/fragments/ButtonSettings.java @@ -37,14 +37,12 @@ import com.android.settings.R; import com.cherish.settings.preferences.SystemSettingSwitchPreference; import com.cherish.settings.preferences.SecureSettingSwitchPreference; import com.android.internal.logging.nano.MetricsProto; -import com.android.internal.util.hwkeys.ActionConstants; -import com.android.internal.util.hwkeys.ActionUtils; import com.cherish.settings.preferences.CustomSeekBarPreference; -import com.cherish.settings.preferences.ActionFragment; - +import com.android.settings.SettingsPreferenceFragment; import com.android.settings.search.BaseSearchIndexProvider; import com.android.settingslib.search.SearchIndexable; +import android.provider.SearchIndexableResource; import java.util.ArrayList; import java.util.List; diff --git a/src/com/cherish/settings/preferences/Utils.java b/src/com/cherish/settings/preferences/Utils.java index 1fa53ff..5debce8 100644 --- a/src/com/cherish/settings/preferences/Utils.java +++ b/src/com/cherish/settings/preferences/Utils.java @@ -58,12 +58,6 @@ public final class Utils { return telephony != null && telephony.isVoiceCapable(); } - public static boolean isWifiOnly(Context context) { - ConnectivityManager cm = (ConnectivityManager)context.getSystemService( - Context.CONNECTIVITY_SERVICE); - return (cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE) == false); - } - public static boolean hasMultipleUsers(Context context) { return ((UserManager) context.getSystemService(Context.USER_SERVICE)) .getUsers().size() > 1;