Update Okio, use more KTX stuff (#4353)

* Update Okio to 2.10.0

* Use some more KTX extensions
This commit is contained in:
Taco
2021-01-26 09:02:53 -05:00
committed by GitHub
parent 34cb24fe34
commit 5f7e34b6a1
19 changed files with 144 additions and 163 deletions

View File

@@ -154,19 +154,19 @@ val Resources.isLTR
* Property to get the notification manager from the context.
*/
val Context.notificationManager: NotificationManager
get() = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
get() = getSystemService()!!
/**
* Property to get the connectivity manager from the context.
*/
val Context.connectivityManager: ConnectivityManager
get() = getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
get() = getSystemService()!!
/**
* Property to get the power manager from the context.
*/
val Context.powerManager: PowerManager
get() = getSystemService(Context.POWER_SERVICE) as PowerManager
get() = getSystemService()!!
/**
* Convenience method to acquire a partial wake lock.