Skip to content

Commit

Permalink
Added version check for PIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 committed Sep 22, 2023
1 parent 3b6213c commit 70fb9d3
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@ class HMSPipAction {
}
}
"is_pip_available" -> {
result.success(
activity.packageManager.hasSystemFeature(PackageManager.FEATURE_PICTURE_IN_PICTURE),
)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ECLAIR) {
result.success(
activity.packageManager.hasSystemFeature(PackageManager.FEATURE_PICTURE_IN_PICTURE),
)
}
else{
result.success(false)
}
}
"setup_pip" -> {
setupPIP(call, result)
Expand Down

0 comments on commit 70fb9d3

Please sign in to comment.