|
|
@ -331,6 +331,7 @@ fun Context.openFileUri(uri: Uri, type: String? = null) { |
|
|
|
|
|
|
|
|
|
|
|
@Suppress("DEPRECATION") |
|
|
|
@Suppress("DEPRECATION") |
|
|
|
val Context.isWifiConnect: Boolean |
|
|
|
val Context.isWifiConnect: Boolean |
|
|
|
|
|
|
|
@SuppressLint("MissingPermission") |
|
|
|
get() { |
|
|
|
get() { |
|
|
|
val info = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI) |
|
|
|
val info = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI) |
|
|
|
return info?.isConnected == true |
|
|
|
return info?.isConnected == true |
|
|
@ -338,7 +339,7 @@ val Context.isWifiConnect: Boolean |
|
|
|
|
|
|
|
|
|
|
|
val Context.isPad: Boolean |
|
|
|
val Context.isPad: Boolean |
|
|
|
get() { |
|
|
|
get() { |
|
|
|
return resources.configuration.screenLayout and Configuration.SCREENLAYOUT_SIZE_MASK >= Configuration.SCREENLAYOUT_SIZE_LARGE |
|
|
|
return (resources.configuration.screenLayout and Configuration.SCREENLAYOUT_SIZE_MASK) >= Configuration.SCREENLAYOUT_SIZE_LARGE |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
val Context.channel: String |
|
|
|
val Context.channel: String |
|
|
|