style(native): fix formatting

This commit is contained in:
edde746
2026-06-14 14:04:52 +02:00
parent f1689a7794
commit c404589382
3 changed files with 8 additions and 7 deletions
@@ -791,12 +791,10 @@ class MainActivity : FlutterActivity() {
audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, target, 0)
}
private fun streamMinVolume(audioManager: AudioManager): Int {
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
audioManager.getStreamMinVolume(AudioManager.STREAM_MUSIC)
} else {
0
}
private fun streamMinVolume(audioManager: AudioManager): Int = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
audioManager.getStreamMinVolume(AudioManager.STREAM_MUSIC)
} else {
0
}
override fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean, newConfig: Configuration) {
@@ -113,6 +113,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
private var assGlCrashHandlerInstalled = false
@Volatile private var cronetEngine: CronetEngine? = null
@Volatile private var cronetUnavailable = false
private fun getCronetEngine(context: Context): CronetEngine? {
cronetEngine?.let { return it }
+3 -1
View File
@@ -75,7 +75,9 @@ import MediaPlayer
if setMediaVolume(value) {
result(nil)
} else {
result(FlutterError(code: "DEVICE_ADJUSTMENT_UNAVAILABLE", message: "System volume slider unavailable", details: nil))
result(
FlutterError(code: "DEVICE_ADJUSTMENT_UNAVAILABLE", message: "System volume slider unavailable", details: nil)
)
}
default:
result(FlutterMethodNotImplemented)