File tree Expand file tree Collapse file tree
app/src/main/java/com/geode/launcher/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import android.content.pm.PackageManager
1010import android.hardware.lights.Light
1111import android.hardware.lights.LightState
1212import android.hardware.lights.LightsRequest
13+ import android.net.ConnectivityManager
1314import android.net.Uri
1415import android.os.Build
1516import android.os.Environment
@@ -771,6 +772,11 @@ object GeodeUtils {
771772 return true
772773 }
773774
775+ @JvmStatic
776+ fun getConnectivityManager (): ConnectivityManager ? = activity.get()?.run {
777+ getSystemService(Context .CONNECTIVITY_SERVICE ) as ConnectivityManager
778+ }
779+
774780 external fun nativeKeyUp (keyCode : Int , modifiers : Int )
775781 external fun nativeKeyDown (keyCode : Int , modifiers : Int , isRepeating : Boolean )
776782 external fun nativeActionScroll (scrollX : Float , scrollY : Float )
You can’t perform that action at this time.
0 commit comments