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)
|
val createNewContact = getBrightDisplayShortcut(appIconColor)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
shortcutManager.dynamicShortcuts = Arrays.asList(createNewContact)
|
shortcutManager.dynamicShortcuts = listOf(createNewContact)
|
||||||
preferences.lastHandledShortcutColor = appIconColor
|
preferences.lastHandledShortcutColor = appIconColor
|
||||||
} catch (ignored: Exception) {
|
} catch (ignored: Exception) {
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ class MyCameraImpl private constructor(private val context: Context, private var
|
||||||
var isFlashlightOn = false
|
var isFlashlightOn = false
|
||||||
|
|
||||||
private var u = 200L // The length of one dit (Time unit)
|
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 shouldEnableFlashlight = false
|
||||||
private var shouldEnableStroboscope = false
|
private var shouldEnableStroboscope = false
|
||||||
|
|
Loading…
Reference in New Issue