Skip to content

Commit

Permalink
Merge branch 'develop' into feature/notifications-redesign
Browse files Browse the repository at this point in the history
Conflicts:
	WordPress/src/main/java/org/wordpress/android/ui/notifications/BigBadgeFragment.java
  • Loading branch information
roundhill committed Sep 3, 2014
2 parents b7c1140 + 36ce907 commit de7cb04
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 de7cb04

Please sign in to comment.