mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Fixes long line and comment lint errors
This commit is contained in:
parent
8e569af60c
commit
a5eca12824
3 changed files with 10 additions and 9 deletions
|
@ -32,10 +32,11 @@ internal class API23AudioDeviceDetector(private val audioManager: AudioManager,
|
|||
val deviceInfos = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS)
|
||||
for (info in deviceInfos) {
|
||||
when (info.type) {
|
||||
AudioDeviceInfo.TYPE_BLUETOOTH_SCO -> devices.add(CallAudioManager.Device.WirelessHeadset(info.productName.toString()))
|
||||
AudioDeviceInfo.TYPE_BUILTIN_EARPIECE -> devices.add(CallAudioManager.Device.Phone)
|
||||
AudioDeviceInfo.TYPE_BUILTIN_SPEAKER -> devices.add(CallAudioManager.Device.Speaker)
|
||||
AudioDeviceInfo.TYPE_WIRED_HEADPHONES, AudioDeviceInfo.TYPE_WIRED_HEADSET, TYPE_USB_HEADSET -> devices.add(CallAudioManager.Device.Headset)
|
||||
AudioDeviceInfo.TYPE_BLUETOOTH_SCO -> devices.add(CallAudioManager.Device.WirelessHeadset(info.productName.toString()))
|
||||
AudioDeviceInfo.TYPE_BUILTIN_EARPIECE -> devices.add(CallAudioManager.Device.Phone)
|
||||
AudioDeviceInfo.TYPE_BUILTIN_SPEAKER -> devices.add(CallAudioManager.Device.Speaker)
|
||||
AudioDeviceInfo.TYPE_WIRED_HEADPHONES,
|
||||
AudioDeviceInfo.TYPE_WIRED_HEADSET, TYPE_USB_HEADSET -> devices.add(CallAudioManager.Device.Headset)
|
||||
}
|
||||
}
|
||||
callAudioManager.replaceDevices(devices)
|
||||
|
|
|
@ -20,9 +20,9 @@ import android.os.Parcelable
|
|||
import kotlinx.parcelize.Parcelize
|
||||
import org.matrix.android.sdk.api.auth.data.SsoIdentityProvider
|
||||
|
||||
sealed class LoginMode : Parcelable { /** Parcelable because persist state */
|
||||
sealed class LoginMode : Parcelable { // Parcelable because persist state
|
||||
|
||||
@Parcelize object Unknown : LoginMode()
|
||||
@Parcelize object Unknown : LoginMode()
|
||||
@Parcelize object Password : LoginMode()
|
||||
@Parcelize data class Sso(val ssoIdentityProviders: List<SsoIdentityProvider>?) : LoginMode()
|
||||
@Parcelize data class SsoAndPassword(val ssoIdentityProviders: List<SsoIdentityProvider>?) : LoginMode()
|
||||
|
|
|
@ -33,9 +33,9 @@ data class CreateSpaceState(
|
|||
val aliasManuallyModified: Boolean = false,
|
||||
val aliasVerificationTask: Async<Boolean> = Uninitialized,
|
||||
val nameInlineError: String? = null,
|
||||
val defaultRooms: Map<Int, String?>? = null, /** Int: position in form */
|
||||
val default3pidInvite: Map<Int, String?>? = null, /** Int: position in form */
|
||||
val emailValidationResult: Map<Int, Boolean>? = null, /** Int: position in form */
|
||||
val defaultRooms: Map<Int, String?>? = null, // Int: position in form
|
||||
val default3pidInvite: Map<Int, String?>? = null, // Int: position in form
|
||||
val emailValidationResult: Map<Int, Boolean>? = null, // Int: position in form
|
||||
val creationResult: Async<String> = Uninitialized,
|
||||
val canInviteByMail: Boolean = false
|
||||
) : MavericksState {
|
||||
|
|
Loading…
Reference in a new issue