diff --git a/build.gradle b/build.gradle index d21c173..75ea8c2 100644 --- a/build.gradle +++ b/build.gradle @@ -26,7 +26,7 @@ dependencies { compile 'com.android.support:multidex:1.0.1' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' - compile 'io.reactivex.rxjava2:rxjava:2.1.0' + compile 'io.reactivex.rxjava2:rxjava:2.1.1' provided 'com.android.support:appcompat-v7:26.0.0-beta2' provided 'com.android.support:recyclerview-v7:26.0.0-beta2' diff --git a/src/main/java/ru/touchin/templates/DeviceUtils.java b/src/main/java/ru/touchin/templates/DeviceUtils.java index 229a5a6..2bd5a48 100644 --- a/src/main/java/ru/touchin/templates/DeviceUtils.java +++ b/src/main/java/ru/touchin/templates/DeviceUtils.java @@ -134,12 +134,14 @@ public final class DeviceUtils { case TelephonyManager.NETWORK_TYPE_HSPAP: return NetworkType.MOBILE_3G; case TelephonyManager.NETWORK_TYPE_LTE: + case 19: // NETWORK_TYPE_LTE_CA is hide return NetworkType.MOBILE_LTE; + case TelephonyManager.NETWORK_TYPE_UNKNOWN: default: - return NetworkType.NONE; + return NetworkType.UNKNOWN; } } - return NetworkType.NONE; + return NetworkType.UNKNOWN; } /** @@ -192,6 +194,10 @@ public final class DeviceUtils { * Wi-Fi network. */ WI_FI("Wi-Fi"), + /** + * Unknown network type. + */ + UNKNOWN("unknown"), /** * No network. */