diff --git a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/MainActivity.kt index 202a733..57d5afb 100644 --- a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/MainActivity.kt @@ -405,7 +405,7 @@ class MainActivity : ComponentActivity() { val createNewContact = getBrightDisplayShortcut(appIconColor) try { - shortcutManager.dynamicShortcuts = Arrays.asList(createNewContact) + shortcutManager.dynamicShortcuts = listOf(createNewContact) preferences.lastHandledShortcutColor = appIconColor } catch (ignored: Exception) { } diff --git a/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MyCameraImpl.kt b/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MyCameraImpl.kt index 8c40b43..9210b7d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MyCameraImpl.kt +++ b/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MyCameraImpl.kt @@ -22,7 +22,7 @@ class MyCameraImpl private constructor(private val context: Context, private var var isFlashlightOn = false private var u = 200L // The length of one dit (Time unit) - private val SOS = arrayListOf(u, u, u, u, u, u * 3, u * 3, u, u * 3, u, u * 3, u * 3, u, u, u, u, u, u * 7) + private val SOS = listOf(u, u, u, u, u, u * 3, u * 3, u, u * 3, u, u * 3, u * 3, u, u, u, u, u, u * 7) private var shouldEnableFlashlight = false private var shouldEnableStroboscope = false