mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-03-06 12:37:44 +01:00
Remove needless ArrayLists and Arrays.toList
calls
This commit is contained in:
parent
7533ad1fa2
commit
f21cd4ff49
@ -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) {
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user