[android] Use expression body for PiP support helper

This commit is contained in:
Nikolai Trukhin 2026-02-26 20:53:57 +00:00
parent e11f8803fe
commit 8392646681

View file

@ -659,10 +659,9 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener, InputManager
return this.apply { setActions(pictureInPictureActions) }
}
private fun isPictureInPictureSupported(): Boolean {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.O &&
private fun isPictureInPictureSupported() =
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O &&
packageManager.hasSystemFeature(PackageManager.FEATURE_PICTURE_IN_PICTURE)
}
private fun runPictureInPictureAction(actionName: String, action: () -> Unit) {
try {