Skip to content

Commit

Permalink
Merge pull request cph-cachet#454 from matsunanaro/hot_fix
Browse files Browse the repository at this point in the history
hot fix: added missing READ_ACCESS
  • Loading branch information
bardram authored Nov 18, 2021
2 parents 088cdb5 + ff141b4 commit 921710a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ class HealthPlugin(private var channel: MethodChannel? = null) : MethodCallHandl
val types = args["types"] as ArrayList<*>
for (typeKey in types) {
if (typeKey !is String) continue
typesBuilder.addDataType(keyToHealthDataType(typeKey), FitnessOptions.ACCESS_READ)
typesBuilder.addDataType(keyToHealthDataType(typeKey), FitnessOptions.ACCESS_WRITE)
if (typeKey == SLEEP_ASLEEP || typeKey == SLEEP_AWAKE) {
typesBuilder.accessSleepSessions(FitnessOptions.ACCESS_READ)
Expand Down

0 comments on commit 921710a

Please sign in to comment.