Add weather icon pack, updates frequency and fix google fit
This commit is contained in:
@ -212,4 +212,13 @@ fun String.getCapWordString(): String {
|
||||
} catch (e: Exception) {
|
||||
this
|
||||
}
|
||||
}
|
||||
|
||||
fun Context.checkIfFitInstalled(): Boolean {
|
||||
return try {
|
||||
packageManager.getPackageInfo("com.google.android.apps.fitness", PackageManager.GET_ACTIVITIES)
|
||||
true
|
||||
} catch (e: Exception) {
|
||||
false
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user