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

Commit 70d13395 authored by Steve Kondik's avatar Steve Kondik
Browse files

wimax: Add a helper to tell us if WiMAX is supported

Change-Id: I4c63ee7e76a9d2827113466a0d6cc0011ad6bb17
parent aa1962bd
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
package com.android.wimax;

import android.content.Context;

/* @hide */
public class WimaxConstants {

@@ -28,4 +30,10 @@ public class WimaxConstants {
    public static final String EXTRA_NETWORK_INFO = "networkInfo";

    public static final String EXTRA_NEW_RSSI_LEVEL = "newRssiLevel";

    public static final String EXTRA_NEW_STATE = "newState";

    public static boolean isWimaxSupported(Context context) {
        return context.getSystemService(Context.WIFI_SERVICE) != null;
    }
}