Remove needless ArrayLists and `Arrays.toList` calls

This commit is contained in:
Ensar Sarajčić 2023-10-13 11:33:02 +02:00
parent 7533ad1fa2
commit f21cd4ff49
2 changed files with 2 additions and 2 deletions

View File

@ -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) {
}

View File

@ -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