style(native): fix formatting
This commit is contained in:
@@ -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 }
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user