Cherish:Remove Utils
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user