Aperture: Use `get() = ` in CameraSoundsUtils
Change-Id: I1ba455135cefb2e4cdf70eacd8cc9a0cd46fd2f7
diff --git a/app/src/main/java/org/lineageos/aperture/utils/CameraSoundsUtils.kt b/app/src/main/java/org/lineageos/aperture/utils/CameraSoundsUtils.kt
index c6997ad..da4c650 100644
--- a/app/src/main/java/org/lineageos/aperture/utils/CameraSoundsUtils.kt
+++ b/app/src/main/java/org/lineageos/aperture/utils/CameraSoundsUtils.kt
@@ -44,14 +44,12 @@
companion object {
val mustPlaySounds: Boolean
@SuppressLint("DiscouragedApi")
- get() {
- return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
- MediaActionSound.mustPlayShutterSound()
- } else {
- val resources = Resources.getSystem()
- val id = resources.getIdentifier("config_camera_sound_forced", "bool", "android")
- id > 0 && resources.getBoolean(id)
- }
+ get() = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
+ MediaActionSound.mustPlayShutterSound()
+ } else {
+ val resources = Resources.getSystem()
+ val id = resources.getIdentifier("config_camera_sound_forced", "bool", "android")
+ id > 0 && resources.getBoolean(id)
}
}
}