Messaging: Remove compatibility for old android versions
Change-Id: Id9065d60525a509271a0e64c0e349e857cb998e2
This commit is contained in:
@@ -23,7 +23,6 @@ import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.net.ConnectivityManager;
|
||||
import android.net.NetworkInfo;
|
||||
import android.os.Build;
|
||||
import android.os.SystemClock;
|
||||
import android.util.Log;
|
||||
|
||||
@@ -350,16 +349,7 @@ class MmsNetworkManager {
|
||||
* @return The change's network type
|
||||
*/
|
||||
private static int getConnectivityChangeNetworkType(final Intent intent) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
|
||||
return intent.getIntExtra(ConnectivityManager.EXTRA_NETWORK_TYPE, TYPE_NONE);
|
||||
} else {
|
||||
final NetworkInfo info = intent.getParcelableExtra(
|
||||
ConnectivityManager.EXTRA_NETWORK_INFO);
|
||||
if (info != null) {
|
||||
return info.getType();
|
||||
}
|
||||
}
|
||||
return TYPE_NONE;
|
||||
return intent.getIntExtra(ConnectivityManager.EXTRA_NETWORK_TYPE, TYPE_NONE);
|
||||
}
|
||||
|
||||
private static String getMmsConnectivityResultString(int result) {
|
||||
|
||||
Reference in New Issue
Block a user