mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-03 23:55:08 +00:00
Prepare beta release
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.kde.kdeconnect_tp"
|
package="org.kde.kdeconnect_tp"
|
||||||
android:versionCode="1610"
|
android:versionCode="1619"
|
||||||
android:versionName="1.6.1">
|
android:versionName="1.6.2 Beta">
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="9"
|
<uses-sdk android:minSdkVersion="9"
|
||||||
android:targetSdkVersion="22" />
|
android:targetSdkVersion="22" />
|
||||||
|
@@ -8,11 +8,9 @@ import android.util.Log;
|
|||||||
public class NetworkHelper {
|
public class NetworkHelper {
|
||||||
|
|
||||||
public static boolean isOnMobileNetwork(Context context) {
|
public static boolean isOnMobileNetwork(Context context) {
|
||||||
return false; //This looks a bit dangerous and I prefer not to use it in the next stable release.
|
final ConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||||
/*final ConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
|
|
||||||
NetworkInfo info = connMgr.getActiveNetworkInfo();
|
NetworkInfo info = connMgr.getActiveNetworkInfo();
|
||||||
return (info != null && info.getType() == ConnectivityManager.TYPE_MOBILE);
|
return (info != null && info.getType() == ConnectivityManager.TYPE_MOBILE);
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user