Skip to content

Commit

Permalink
fix lint error in utils
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Sep 2, 2014
1 parent 0868a89 commit 485abe4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
package org.wordpress.android.util;

import android.annotation.TargetApi;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.os.Build.VERSION_CODES;
import android.provider.Settings;

/**
* requires android.permission.ACCESS_NETWORK_STATE
*/

public class NetworkUtils {
public static final int TYPE_UNKNOWN = -1;

Expand Down Expand Up @@ -57,6 +60,8 @@ public static boolean isWiFiConnected(Context context) {
/**
* returns true if airplane mode has been enabled
*/
@TargetApi(VERSION_CODES.JELLY_BEAN_MR1)
@SuppressWarnings("deprecation")
public static boolean isAirplaneModeOn(Context context) {
// prior to JellyBean 4.2 this was Settings.System.AIRPLANE_MODE_ON, JellyBean 4.2
// moved it to Settings.Global
Expand Down

0 comments on commit 485abe4

Please sign in to comment.