Aperture: Don't build perms using mutable Lists
Waste of resources!
Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com>
Change-Id: Iefbdc9277acff77269bd94fe4c18efa98a72844d
diff --git a/app/src/main/java/org/lineageos/aperture/MainActivity.kt b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
index 67d3ad4..9005066 100644
--- a/app/src/main/java/org/lineageos/aperture/MainActivity.kt
+++ b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
@@ -1222,12 +1222,12 @@
private const val REQUEST_CODE_PERMISSIONS = 10
private val REQUIRED_PERMISSIONS =
- mutableListOf(
+ listOf(
Manifest.permission.CAMERA,
Manifest.permission.RECORD_AUDIO
).toTypedArray()
internal val REQUIRED_PERMISSIONS_LOCATION =
- mutableListOf(
+ listOf(
Manifest.permission.ACCESS_COARSE_LOCATION,
Manifest.permission.ACCESS_FINE_LOCATION
).toTypedArray()